/* * File for setting the properties of a new TIP830u20 device to * default values. * */ #include <tango.h> using namespace Tango; main(unsigned int argc, char **argv) { // // create a connection to the new TIP830u20 ADC TANGO device // DeviceProxy *device = new DeviceProxy( "tango://has107k:10000/exp/line1/adc1"); // Write default values to properties unsigned long base = 2048; // 0x800 unsigned long channel = 0; DbDatum base_toput("Base"), channel_toput("Channel"); DbData db_data; base_toput << base; channel_toput << channel; db_data.push_back(base_toput); db_data.push_back(channel_toput); device->put_property(db_data); }