Connecting to Keysight N5767A by Keysight in Python
Instrument Card
The single output, 1500 W N5767A, provides universal AC input, GPIB, LAN, USB, LXI compliance, and analog/resistance control of output voltage and current. It delivers reliable performance and enhanced capabilities in a compact 1U package.
Device Specification: here
Manufacturer card: KEYSIGHT
Keysight Technologies, or Keysight, is an American company that manufactures electronics test and measurement equipment and software
- Headquarters: USA
- Yearly Revenue (millions, USD): 5420
- Vendor Website: here
Demo: Measure a solar panel IV curve with a Keithley 2400
Connect to the Keysight N5767A in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here is a Python script that uses Pymeasure to connect to a Keysight N5767A Power Supply:
This script creates a class KeysightN5767A
that represents the Keysight N5767A Power Supply. It defines properties and methods to control and measure the current and voltage of the power supply.
The script then creates a VISA adapter using VISAAdapter("GPIB0::22::INSTR")
, where "GPIB0::22::INSTR"
is the address of the power supply. You may need to change this address to match your setup.
An instance of the KeysightN5767A
class is created using the adapter, and the power supply is opened with power_supply.open()
.
You can then use the properties and methods of the KeysightN5767A
class to interact with the power supply. In the example usage section, it prints the current range, voltage range, enables and disables the power supply, and checks if it is enabled.
Finally, the connection is closed with power_supply.close()
.