Easy control of Keithley SMU.
pip install git+https://github.com/SengerM/keithley
from keithley.Keithley2470 import Keithley2470
keithley = Keithley2470('USB0::xxx::xxxx::xxxxxxxxx::0::INSTR')
print(keithley.idn) # Prints info about the device like name, serial, etc.
keithley.source_voltage = 100 # Set 100 V at the output
keithley.current_limit = 10e-6 # Set limit to 10 µA
keithley.output = 'on' # Turn on the output
print(f'Output is: {keithley.measure_voltage()} V, {keithley.measure_current()*1e6} µA')
keithley.output = 'off' # Turn off the output
