Skip to content

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 DC power supply 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.

Keithley 6220

Device Specification: here

Manufacturer card: KEITHLEY

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

Connect to the Keithley 6220 in Python

PROTOCOLS > SCPI

To connect to a Keithley 6220 Power Supply using Instrumentkit, you can use the following Python script:

import instrumentkit as ik
# Connect to the Keithley 6220 Power Supply
ccs = ik.keithley.Keithley6220.open_gpibusb("/dev/ttyUSB0", 10)
# Set the current to 10mA
ccs.current = 10 * ik.units.milliamp
# Disable the output and set the current to 0A
ccs.disable()

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.