-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lima controller "moving" when lima server restarted #5
Comments
Together with @rhomspuron, we found the following (at least when using lima 1.9.x): As far as we understood, One suggestion is to maintain state in the controller to know if it has executed a prepareAcq or not. Needs further investigation |
Hi, I'm not able to reproduce the MOVING state with current controller version (1042195), I got ON. |
What lima version do you have? I am using 1.9.x |
I'm using Lima version 1.9.7. Nevertheless, it looks like commit d9110de has also fixed this bug. Could some of you please confirm that latest controller version is now working as expected? |
I will check it |
Sorry @jordiandreu but the bug is still there in the latest master When I start sardana and ask the state of the lima channel i have the following state:
In this state, the StateOne method should return MOVING I don't know why when we tested before with your simulator we could not get it. |
Certainly, now i can reproduce this error by: What I have found is that the experimental channel state is MOVING, but the controller state is ON. |
The state of the controller should no change. We can check the first implementation of the LimaCoTiCtrl to check if the logic is similar, maybe is a problem that we did not detect and Sardana has a bug which allows to start the channel in moving and for that reason it works :) |
Indeed @rhomspuron. I agree. I think I commented this to @reszelaz and he agrees that sardana should not start an acquisition if at least one channel is not ready (moving for example). |
Yes, it looks like a bug that we can acquire if the channel is MOVING. Most probably it is related to sardana-org/sardana#1316. I would even say the Tango state machine of the MeasurementGroup should prevent the Start command to be executed when it is in MOVING (even if sometimes it is a little bit tricky to keep in sync the Sardana kernel object state with the Tango device state). Furthermore, on the last Sardana follow-up meeting @13bscsaamjad raised a similar issue about not allowing the MeasurementGroup to start when one of its channels is FAULT. I suggest we move discussion on this particular point to the Sardana project. I think that sardana-org/sardana#1316 is a good starting point. |
Hi, I also hit this problem. Could you advice if stopping the channel is a good workaound for this issue:
Many thanks! |
FYI, since sardana-org/sardana#1594 Sardana will prevent starting MeasurementGroup when its state different than On or Alarm. This includes the above discussed Moving state. |
Cool! Thanks @reszelaz |
This should be fixed since #11 |
Hi,
IMHO, it should be ON.
The text was updated successfully, but these errors were encountered: