Several python pakage is needed
pip install pyvisa,pandas,plotly,nidaqmx,pyserialJupyter notebook/lab is a best tool to test the function in this pakage. You can try to develop your own function with our customise pakage in the equipment folder.
Measuring IV relationship with Keithley-6221 and Keithley-2182A
>>> from equipment.keithley_6221 import keithley_6221
>>> from equipment.keithley_2182a import keithley_2182a
>>>
>>> k6221 = keithley_6221(address = 'GPIB0::01::INSTR')
>>> k2182 = keithley_2182a(address = 'GPIB0::02::INSTR')
>>>
>>> k6221.set_current(1e-3) # set current
>>> k6221.output(True) # turn on keithley
>>> data = k2182.record() # record data
>>> print(data)
>>> k6221.output(False)To understand more, you can try to read Keithley website for the user-manuel.
If you have any question of the code, you are welcome to contact me.
Email: skcheungag@connect.ust.hk Shun Kong, Cheung