DevEnum atttribute enum labels
|
|
---|---|
Hi, I am trying to get the device attribute's enum labels list. At the moment I am using the DeviceProxy object to query the device for the attribute configuration, however I wanted to know if there is a way to get them through the device object. So far I have tried using: and however none of the returned objects have the property enum_labels.Kind regards, Katleho |
|
|
---|---|
Hi Katleho, Sorry for answering in C++, but since PyTango is based on the Tango C++ library, this might still help you. In C++, in a device server, you can get the enum labels from a MultiAttrProp object, using Attribute::get_properties(MultiAttrProp<T>&) method. Here is a sample code:
Maybe the pyTango experts could guide you better after this hint Hoping this helps, Reynald PS: Special thanks to Emmanuel Taurel for his help on this topic.
Rosenberg's Law: Software is easy to make, except when you want it to do something new.
Corollary: The only software that's worth making is software that does something new. |