Connecting to Keithley 2601B by Keithley in Python
Instrument Card
The Model 2601B SourceMeter SMU instrument, is a new and improved one channel SMU instrument with a tightly integrated four-quadrant design that allows it to simultaneously source and measure both voltage and current to boost productivity in applications ranging from R&D to automated production test. In addition to retaining all the features of the Model 2601A, the Model 2601B has 6½-digit resolution, USB 2.0 connectivity, and software command emulation of the Model 2400 SourceMeter SMU Instrument that enables easy migration of legacy test code. The Model 2601B model is equipped with Keithley’s high speed TSP technology (over 190% faster than traditional PC-to-instrument communication techniques,) which dramatically improves the system-level speed to lower the cost of test.
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 2601B in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
Here’s an example Python script that uses Qcodes to connect to a Keithley 2601B Power Supply:
import qcodes as qcfrom qcodes.instrument_drivers.tektronix.Keithley_2600_channels import Keithley2600
# Create a connection to the Keithley 2601B Power Supplykeithley = Keithley2600("keithley", "TCPIP::192.168.1.1::INSTR")
# Print the instrument IDprint(keithley.get_idn())
# Set the voltage and current limitskeithley.smua.limitv(10) # Set voltage limit to 10Vkeithley.smua.limiti(0.1) # Set current limit to 0.1A
# Enable the outputkeithley.smua.output(1) # Turn on the output
# Set the voltage and current levelskeithley.smua.volt(5) # Set voltage to 5Vkeithley.smua.curr(0.05) # Set current to 0.05A
# Measure the voltage and currentvoltage = keithley.smua.volt()current = keithley.smua.curr()print(f"Voltage: {voltage}V, Current: {current}A")
# Disable the outputkeithley.smua.output(0) # Turn off the output
# Close the connectionkeithley.close()
Note: Replace "TCPIP::192.168.1.1::INSTR"
with the actual IP address or VISA resource address of your Keithley 2601B Power Supply.