Connecting to Keithley 6220 by Keithley in Python
Instrument Card
The Model 6220 DC Current Source and Model 6221 AC and DC Current Source combine ease of use with exceptionally low current noise. Low current sourcing is critical to applications in test environments ranging from R&D to production, especially in the semiconductor, nanotechnology, and superconductor industries. High sourcing accuracy and built-in control functions make the Models 6220 and 6221 ideal for applications like Hall measurements, resistance measurements using delta mode, pulsed measurements, and differential conductance measurements.
Device Specification: here
Manufacturer card: KEITHLEY
Keithley Instruments is a measurement and instrument company headquartered in Solon, Ohio, that develops, manufactures, markets, and sells data acquisition products, as well as complete systems for high-volume production and assembly testing.
- Headquarters: Cleveland, Ohio, United States
- Yearly Revenue (millions, USD): 110.6
- Vendor Website: here
Demo: Measure a solar panel IV curve with a Keithley 2400
Connect to the Keithley 6220 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Keithley 6220 Power Supply using Instrumentkit, you can use the following Python script:
This script imports the instrumentkit
module as ik
and uses the open_gpibusb
method from the ik.keithley.Keithley6220
class to connect to the Keithley 6220 Power Supply. The first argument to open_gpibusb
is the device path (/dev/ttyUSB0
in this example) and the second argument is the GPIB address (10 in this example).
Once connected, you can use the current
property to set the output current of the power supply. In this example, it sets the current to 10mA.
Finally, the disable
method is called to set the output current to 0A and disable the output.