Skip to content

Connecting to Keithley 6517B by Keithley in Python

Instrument Card

6517B Electrometer/High Resistance Meter is capable of measuring the largest voltage range—up to 200 V—with an input impedance exceeding 200 TΩ. All this performance is built into an instrument that operates as simply as a digital multimeter.

Keithley 6517B

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 6517B in Python

PROTOCOLS > SCPI

from pymeasure.adapters import VISAAdapter
from pymeasure.instruments.keithley import Keithley6517B
# Create a VISA adapter for the instrument
adapter = VISAAdapter("GPIB::1")
# Connect to the Keithley 6517B Power Meter
keithley = Keithley6517B(adapter)
# Enable the source output
keithley.enable_source()
# Set up to measure resistance
keithley.measure_resistance()
# Set the source voltage range to 200 V
keithley.source_voltage_range = 200
# Set the source voltage to 20 V
keithley.source_voltage = 20
# Ramp the voltage to 50 V
keithley.ramp_to_voltage(50)
# Print the measured resistance in Ohms
print(keithley.resistance)
# Ramp the voltage to 0 V and disable the output
keithley.shutdown()
# Disconnect from the instrument
keithley.disconnect()

This script connects to the Keithley 6517B Power Meter using a VISA adapter and creates an instance of the Keithley6517B class. It then enables the source output, sets up to measure resistance, and configures the source voltage range and voltage. It ramps the voltage to 50 V and prints the measured resistance. Finally, it ramps the voltage to 0 V and disables the output before disconnecting from the instrument.