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

Be able to force Out records into an error state #53

Closed
AlexanderWells-diamond opened this issue Oct 13, 2021 · 4 comments · Fixed by #157
Closed

Be able to force Out records into an error state #53

AlexanderWells-diamond opened this issue Oct 13, 2021 · 4 comments · Fixed by #157

Comments

@AlexanderWells-diamond
Copy link
Collaborator

Currently there is no explicit way to force an Out record into an error state. The set() method on In records provides the severity and alarm keyword arguments (as well as the set_alarm() method), but there is no equivalent mechanism for Out records. Providing this would be useful for the PandABlocks-client PythonSoftIOC integration, as PandA can report fields as being in_error, and the associated records are often Out types.

@evalott100
Copy link

evalott100 commented Apr 4, 2024

@AlexanderWells-diamond

Was there any progress on this? We need it for PandABlocks/PandABlocks-ioc#107.

@AlexanderWells-diamond
Copy link
Collaborator Author

@Araneidae and I have just discussed this. In principle we can do it.

There are some behavioural questions though, such as whether this alarm should be "sticky" or whether it should clear on next write, that sort of thing. Could you give us an example of what you'd want/expect to see, assuming we invent some .set_alarm() method on out records?

@Araneidae
Copy link
Collaborator

It's worth pointing out that doing this requires a hack and is not directly supported by EPICS.

@evalott100
Copy link

The use case we're looking at is when the PandABlocks ioc stops receiving data from the client. We don't want to end the process, but mirror what other iocs do - keep the PVs active and in an error state.

image

$ caget PANDA1:CALC2:INPA.STAT

PANDA1:CALC2:INPA.STAT NO_ALARM

$ caget PANDA1:CALC2:OUT.STAT

PANDA1:CALC2:OUT.STAT READ_ACCESS

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

Successfully merging a pull request may close this issue.

3 participants