Memorized Dynamic Attribute

Hello TANGO Experts,

Consider a scenario, in which there is a need to create and remove attributes, which are memorized, upon invocation of a command.

When a memorized attribute is created dynamically upon invocation of a command, it's value is not fetched from the database. But, if it is created in init_device() method, then the value gets fetched from the database.

Attached is a rudimentary Java Device to check the same. It contains command CreateDynAttr to create dynamic attributes, and command DeleteDynAttr to remove dynamic attributes. Dynamic attributes are also created inside init_device() method.

What is the way to enforce the fetching of the memorized value from the database for a TANGO attribute?

Regards,
Vatsal Trivedi
Hello Vatsal,

You are right, it does not work. The memorized values are only fetch at init. Sorry, there is no workaround.
We have to fix this issue:
https://github.com/tango-controls/JTango/issues/54

Best Regards,

Gwenaëlle Abeillé
Synchrotron SOLEIL
Hi Gwenaëlle,

Thanks for taking a note of this. I found that this issue is already reported by someone else on the TANGO forum. Below is the link to the earlier discussion:
http://www.tango-controls.org/community/forum/c/development/java/memorised-dynamic-attribute/

Regards,
Vatsal Trivedi
 
Register or login to create to post a reply.