Skip to content
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

Reflectometry: Propagate alarms #3892

Closed
John-Holt-Tessella opened this issue Dec 18, 2018 · 3 comments
Closed

Reflectometry: Propagate alarms #3892

John-Holt-Tessella opened this issue Dec 18, 2018 · 3 comments

Comments

@John-Holt-Tessella
Copy link
Contributor

John-Holt-Tessella commented Dec 18, 2018

As an instrument scientist I want to know on the reflectometry screen if one of my motors is in alarm because I need to stop experimenting and investigate the problem.

This means propagating the alarms from the motor up to the beamline parameter which it controls.
For Theta which is the main parameter (be espeacilly careful for Theta which for a readback relies on multiple components). The main status should alarm if any motor that we rely on has a problem.

To get the alarms try to use the monitor in CaChannel; it should tell you about alarams but I am not convinced that these works (https://cachannel.readthedocs.io/en/latest/cachannel.html#CaChannel.CaChannel.array_get_callback I think I have not passed the correct request type it should be DBR_STS_XXX). If not instead you may need to monitor the status and severity fields of the motor pv.

@John-Holt-Tessella
Copy link
Contributor Author

John-Holt-Tessella commented Oct 22, 2019

Use @observable at driver level. then add in alarms to that named tuple
Then beamline update event triggers for alarm
Beamline parameters pull alarm value up (maybe as one object)
Get alarm into pv, make pv send alaram and .stat and .serv field for pv. e.g. PARAM:DET_POS needs to be in alarm AND .stat fiel needs to show value for that and .SERV field needs to show value (maybe create non Simple PV which does this automagically)

@John-Holt-Tessella
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants