Pythons devices && __SubDevices property
|
|
---|---|
Hi all, One would expect to find a __SubDevices property attached to any python device. Unfortunately, there is no such entry in the database. Is this a 'not yet implemented feature' or a technical limitation? N. |
|
|
---|---|
|
Hi Nicolas, PyTango doesn't handle the __SubDevices. It is handled directly at the C++ so it should work. I have tested in my machine with Tango 8.1.2 / PyTango 8.1.6 and it works. Apparently the list of __SubDevices is updated very slowly (Emmanuel Taurel told me ~30min) so you need to have the server running for at least this amount of time to see the property being initialized. Hope it helps. Cheers Tiago |
|
|
---|---|
Hi Tiago, That's weird cause I have several python devices running since days and none of them has the expected __SubDevices property. I'm using the 8.1.2 version of both Tango and PyTango - which are known to be quite decent releases :) N. |
|
|
---|---|
The guru said : "if you instantiate your DeviceProxy from a thread which is not the main thread then, this proxy will be attached to the __SubDevices list of the admin device (i.e. of the dserver)". Very subtle detail I ignored so far. Thanks Manu. |