Connecting to Keithley 2182 by Keithley in Python
Instrument Card
The two-channel Model 2182A Nanovoltmeter is optimized for making stable, low noise voltage measurements and for characterizing low resistance materials and devices reliably and repeatably. It provides higher measurement speed and significantly better noise performance than alternative low voltage measurement solutions. It offers a simplified delta mode for making resistance measurements in combination with a reversing current source, such as the Model 6220 or 6221.
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
Connect to the Keithley 2182 in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
To connect to a Keithley 2182 Power Meter using Instrumentkit, you can use the following Python script:
This script imports the instrumentkit
module and uses the open_gpibusb
method of the Keithley2182
class to connect to the Keithley 2182 Power Meter. The first argument of open_gpibusb
is the device path (/dev/ttyUSB0
in this example) and the second argument is the GPIB address (10 in this example).
After connecting to the power meter, the script performs a measurement using the measure
method of the Keithley2182
class. The measurement mode is specified as meter.Mode.voltage_dc
, which represents the DC voltage measurement mode.
Finally, the script prints the measurement value.