Import-Export Device
|
|
---|---|
Hi All, I have one doubt related to following syntax: DbDevImportInfo Database::import_device(string &); I have tried the code given in tango_manual_81. The code is as follows: But the above code is throwing this exception:
So please help me to resolve this doubt. Thanks and Regards, Tcs-Gmrt
Regards,
TCS_GMRT |
|
|
---|---|
Hello "Tcs-gmrt" Could you send us how the "db" variable is initialized. According to the error message, it seems that it is not a Tango Database instance (rather a pointer to). In the documentation you are referring, "db" is a pointer to one instance of the Tango::Database class Regards Emmanuel |
|
|
---|---|
Hi This is how we initialized 'db' variable. Database *db=new Database(); I have one more doubt, can i get "host" information after importing the device. If "yes" then how to get it. Thanks and Regards, Tcs-Gmrt
Regards,
TCS_GMRT |
|
|
---|---|
Hi, With code like the following, it's working fine.
Could you compare this code and yours? Cheers Emmanuel |
|
|
---|---|
Hi, Thank You. I compared both codes. Now my code is working. I have one more question,can I get "host" information after importing the device. If "yes" then how to get it. Thanks and Regards Tcs-Gmrt
Regards,
TCS_GMRT |
|
|
---|---|
You can get the device host information after importing the device as documented in this section of the manual: http://www.esrf.eu/computing/cs/tango/tango_doc/kernel_doc/ds_prog/node7.html#SECTION00712100000000000000 Always check the manual first! Andy |