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:
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.