steelelab-delft / stlab

Environment for SteeleLab measurement scripts
https://steelelab-delft.github.io/stlab/
GNU General Public License v3.0
9 stars 4 forks source link

Pop-up reset twice #21

Open feschmidt opened 5 years ago

feschmidt commented 5 years ago

When not resetting an instrument, you have to go through the "are you sure" loop twice because in autodetect_instrument, the device connection is first tested, then closed, then opened again.

feschmidt commented 5 years ago

Connected to this, the Lakeshores by default are set to reset=False because we do not want to reset them ever. This results in unnecessary pop-ups

feschmidt commented 5 years ago

Maybe useful: add a check when querying the device id and setting reset='ignore' at that stage. Then later, when properly instantiating, reset=reset

https://github.com/steelelab-delft/stlab/blob/fd0136467df160d2d59b669e908f1a375db718c5/devices/autodetect_instrument.py#L59-L62

feschmidt commented 5 years ago

or even better, set reset=False above