Skip to content

Connecting to Keithley 195 by Keithley in Python

Instrument Card

The Keithley 195A Digital Multimeter is a fully programmable instrument with a 5.5 digit resolution. In standard configuration, the Model 195A is capable of DC voltage measurements between 100nV and 1000V on six ranges, 2-terminal and 4-terminal resistance measurements between 100µO and 20MO on seven ranges. The instrument is designed to work with platinum RTD probes, a factor which contributes to high accuracy.

Keithley 195

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

Demo: Record voltage over time with an Agilent 34401A multimeter

Connect to the Keithley 195 in Python

PROTOCOLS > SCPI

To connect to a Keithley 195 Multimeter using Instrumentkit, you can use the following code:

import instrumentkit as ik
# Connect to the Keithley 195 Multimeter
dmm = ik.keithley.Keithley195.open_gpibusb('/dev/ttyUSB0', 12)
# Perform a measurement
measurement = dmm.measure(dmm.Mode.resistance)
# Print the measurement result
print(measurement)

This code imports the instrumentkit module and uses the open_gpibusb method from the ik.keithley.Keithley195 class to connect to the Keithley 195 Multimeter. The open_gpibusb method takes the device path ('/dev/ttyUSB0') and the GPIB address (12) as arguments.

After connecting, you can use the measure method to perform a measurement. In this example, the measurement mode is set to resistance (dmm.Mode.resistance), but you can change it to other modes like voltage_dc or current_dc.

Finally, the measurement result is printed to the console.