dls-controls / pythonSoftIOC

Embed an EPICS IOC in a Python process
Apache License 2.0
32 stars 7 forks source link

Allow setting of alarm status and severity on record creation using PythonSoftIOC alarm values #57

Closed AlexanderWells-diamond closed 1 year ago

AlexanderWells-diamond commented 2 years ago

Currently to set the alarm status and severity on a record during creation you must use the EPICS field names and values, e.g.:

STAT="UDF", SEVR="INVALID"

It would be convenient to allow use of the same syntax that the .set_alarm() method uses, that is to say making use of the alarm enum.

This is probably somewhat related to #53.