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.
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 6517B in Python
Read our guide for turning Python scripts into Flojoy nodes.
PROTOCOLS > SCPI
from pymeasure.adapters import VISAAdapterfrom pymeasure.instruments.keithley import Keithley6517B
# Create a VISA adapter for the instrumentadapter = VISAAdapter("GPIB::1")
# Connect to the Keithley 6517B Power Meterkeithley = Keithley6517B(adapter)
# Enable the source outputkeithley.enable_source()
# Set up to measure resistancekeithley.measure_resistance()
# Set the source voltage range to 200 Vkeithley.source_voltage_range = 200
# Set the source voltage to 20 Vkeithley.source_voltage = 20
# Ramp the voltage to 50 Vkeithley.ramp_to_voltage(50)
# Print the measured resistance in Ohmsprint(keithley.resistance)
# Ramp the voltage to 0 V and disable the outputkeithley.shutdown()
# Disconnect from the instrumentkeithley.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.