Connecting to FJ Series by Glassman in Python
Instrument Card
FJ Series - 120W regulated high voltage AC-DC power supplies with outputs from 0 - 1kVDC to 0 - 60kVDC

Device Specification: here
Manufacturer card: GLASSMAN

Looking for the leading manufacturer of AC-DC power supplies, DC-DC converters, high voltage, RF & custom power products? Discover our extensive range.
- Headquarters: Singapore
- Yearly Revenue (millions, USD): 295
- Vendor Website: here
Demo: Measure a solar panel IV curve with a Keithley 2400
Connect to the FJ Series in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a FJ Series Power Supply using Instrumentkit, you can use the GlassmanFR class from the provided code. Here’s an example script:
import instrumentkit as ik
# Connect to the power supplypsu = ik.glassman.GlassmanFR.open_serial('/dev/ttyUSB0', 9600)
# Set the output voltage to 100Vpsu.voltage = 100
# Turn on the power supplypsu.output = True
# Read the output voltagevoltage = psu.voltageprint(voltage)This script first imports the instrumentkit module as ik. Then, it creates an instance of the GlassmanFR class by calling the open_serial method and passing the serial port name and baud rate as arguments.
Next, it sets the output voltage of the power supply to 100V by assigning the desired voltage value to the voltage property of the psu object.
After that, it turns on the power supply by assigning True to the output property of the psu object.
Finally, it reads the output voltage by accessing the voltage property of the psu object and prints the result.
Note that you may need to modify the serial port name and baud rate to match your specific setup.