Open TronGon opened 11 months ago
Hi,
If I reboot the platform, I wil loose all the parameters as they are now, which will mess with the experiment, this cannot happen.
By this do you mean rebooting qiliab's platform
or are your referring to restarting your notebook's kernel (experimental platform)?
If it is the later, running platform.disconnect()
and then running the usual instrument setup steps:
platform.connect()
platform.initial_setup()
platform.turn_on_instruments()
will reset the cluster and clear its cache, and this should solve the issue.
I know this will solve the problem, but if I run platform.connect(), it may crash the yokogawa. Also, it will reset all the parameters to the parameters in the runcard, which may not be the ones at the experiment at that moment.
I know this will solve the problem, but if I run platform.connect(), it may crash the yokogawa. Also, it will reset all the parameters to the parameters in the runcard, which may not be the ones at the experiment at that moment.
The resetting of the parameters is done inside the platform.initial_setup()
, thus doing platform.connect()
shouldn't affect the current instrument parameters.
@visagim please correct me if I'm wrong.
Running connect
also initializes the device however since it runs:
def _initialize_device_and_set_to_all_modules(self):
"""Initialize the Controller Device driver and sets it for all modules"""
self._initialize_device()
self._set_device_to_all_modules()
This might have unwanted effects on the source mode parameter of the yokogawa. If the only problem is qblox's cluster, I think the best approach would be to get the cluster using instrument = platform.get_element("instrument_alias")
and then running instrument.reset()
This is not a real bug but a misuse. Qililab does not offer the possibility of stopping experiments midway and keep parameters at the moment, which would be a new feature if needed. There are ways to recover all instruments in the event an experiment crashes midway or is stopped, as described in the comments.
@jjmartinezQT I agree with you that this is not a bug. What do you think of keeping this issue as an enhancement?
I will reopen the issue and change the label. Let me know if you don't agree! 😄
@AlbertMitjans Yes, that is fine, we can implement this as an enhancement.
Expected behavior
I expect to be able to cancel a measurement in the fly and the thing to don't stop working.
Actual behavior
Turns out that I realised that the array for the coil was too long, so I cancelled the operation. Now I get an error if I lunch a new measurement. If I reboot the platform, I wil loose all the parameters as they are now, which will mess with the experiment, this cannot happen.
Additional information
I want to do a flux measurement vs frequency. Currently I am using Yokogawa as current source, RS as the microwave generator and the Qblox to read the signal.
Source code
Tracebacks
System Information
Existing GitHub issues