Cpp example for setting the properties of new SIS3610 Device to default values.
/* * File for setting the properties of a new SIS3610 device to * default values. * */ #include <tango.h> using namespace Tango; main(unsigned int argc, char **argv) { // // create a connection to the new SIS3610 IO Register TANGO device // DeviceProxy *device = new DeviceProxy( "tango://has107k:10000/exp/line1/ireg1"); // Write default values to properties unsigned long base = 65536; unsigned long channel = 0; unsigned short flagInputOutput = 0; // 0 for input, 1 for output channel DbDatum base_toput("Base"), channel_toput("Channel"); DbDatum flagInputOutput_toput("FlagInputOutput"); DbData db_data; base_toput << base; channel_toput << channel; type_toput << flagInputOutput; db_data.push_back(base_toput); db_data.push_back(channel_toput); db_data.push_back(flagInputOutput_toput); device->put_property(db_data); }