Dynamic properties

Hi,

I am using JTangoServer-9.0.0. And my question is - is it possible to have dynamic properties?

DynamicManagment allows to add commands and attributes. For my use case it would be useful to add properties as well, i.e.

in server configuration user specifies a number of properties with values. When server starts is adds these properties to the DB, so that they become visible in jive?

Thank you in advance.
Hi,

For me, the properties are already dynamic. Maybe I have not clearly not understood, but for me:

If you have properties depending on properties, you will have to use directly the Tango Db Api to retrieve these values or put them into the database.

Example in c++ for writing a new propertie:

Tango:: DbDatum l_prop("MyNewProp" );
l_prop << "New Value for jive properties";
Tango:: DbData l_db_data;
l_db_data.push_back(l_prop);
this->get_db_device()->put_property(l_db_data);

Example in c++ for reading a new propertie:

Tango:: DbData	dev_prop;
dev_prop.push_back(Tango:: DbDatum("MyProperty" ));
this->get_db_device()->get_property(dev_prop);

I think we can't have something directly in Pogo, because of the definition of necessary conditions to trigger the new property.

SO the solution (for us) is to use these "snippets".

Hope it helps
Edited 9 years ago
 
Register or login to create to post a reply.