Closed stufisher closed 5 years ago
The example you show is flawless. Could be a strange bug in the server.
I will have a look tomorrow. Thanks for reporting.
@stufisher,
@jairomoldes noticed that inheriting from Device_4Impl instead of Device_5Impl on (Py)Tango 9.3.x seems to be the cause for the problem.
The bug was reported in Tango C++ project (see here)
There is a simple fix which is to inherit from PyTango.LatestDeviceImpl
instead of PyTango.Device_XImpl
.
The LatestDeviceImpl member exists in PyTango for some time but the the Lima code pre-dates its existence so I will make a PR in the Lima project.
Thanks for reporting.
@jairomoldes thanks for noticing this!
There seems to be some issue with eventing in 9.3.2. This worked ok in 9.2.5a.
If i build a test device using the high level
Device
server api events look to be emitted ok, however usingDevice_4Impl
results is nothing being emitted.Heres my test case:
HLAPI:
LLAPI:
and my test script:
With a device running the HLAPI, events are emitted every 1s as expected. With my LLAPI device you get an event on first subscription, then nothing.
Installed versions are:
If i conda install pytango=9.2.5 llapi device works
This came from trying to understand why Lima had stopped emitting events. It is implemented using Device_4Impl: https://gitlab.esrf.fr/limagroup/Lima-tango-python/issues/17