Keithley 2450 set up trouble-shooting #6065
-
I am realtively new to python and qcodes and am attempting to set up transistor measurements, using two Keithley 2450's and qcodes. My second question is: I have followed the qcodes 2450 example experiment and got it to work. If I simply then run my script again, I get a KeyError: 'Another instrument has the name: gate'. My assumption is that I need a line of code which somehow resets the instrument name at the beginning of the experiment but I can't seem to find this. Thanks for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't have any specific experience with the 2450 but when you connect to a qcodes instrument it will stay connected until you call close on the instrument class or close that python session. That is by design such that you don't have to spend time connecting and getting the state of the instrument more than once. Usually people setup their scripts such that they connect once and then reuse that instrument. But you may also chose to call close explicitly at the end of your script |
Beta Was this translation helpful? Give feedback.
-
I use this instrument and my setup script includes qc.Instrument.close_all() just before I begin setting up my station, to do exactly what Jens suggests. |
Beta Was this translation helpful? Give feedback.
I use this instrument and my setup script includes qc.Instrument.close_all() just before I begin setting up my station, to do exactly what Jens suggests.