Device states

Question asked by Steve:

I have a device server to write which does not fit well into the normal model in that it has non standard states "Digital Locked" and "Optically Locked" - normally would people make these a sub-state of "ON" identified with a boolean for each?
Hi Steve,

the Tango way would be to use the Tango states to reflect the high level states and an enumerated type attribute to give you more detailed state about the device's internal state. The Tango states are for general use and the generic tools. It is not always possible possible to map these to Tango states due to large variety of internal states for all devices. State is also a overloaded word and can mean different things. In your case state could also be called mode. I suggest you create an enumerated attribute called "mode".

Enumerated attributes are available in Tango9. If you are using Tango8 then use a short integer attribute type.

Andy
 
Register or login to create to post a reply.