pyvisa is needed for this control.
--> pip install pyvisa
Several keithley model library were included With calling library, you could set current, voltage and measure the voltage you want.
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