taurus.Attribute().read() never changes
Using: python3.7 taurus 5.2.4 pytango 9.3.3
When using taurus.Attribute().read(), I always get the same value. I does happen when using a tango.AttributeProxy().read().
Seems to happen with both event and eventless attributes.
I used a TangoTest and then did this in an ipython console:
n [1]: import taurus
In [2]: import tango
In [3]: import time
In [4]: while True: print(tango.AttributeProxy('sys/tg_test/1/long_scalar').read().value); time.sleep(0.3) 229 229 229 229 229 215 215 215 215 215 215 215 200 200 200 200 200 200 250 250 250 250 250 250 250 ^C---------------------------------------------------------------------------
In [5]: while True: print(taurus.Attribute('sys/tg_test/1/long_scalar').read().value); time.sleep(0.3) MainThread WARNING 2025-09-26 11:08:45,871 TaurusRootLogger: epics scheme not available: ModuleNotFoundError("No module named 'epics'") MainThread WARNING 2025-09-26 11:08:45,900 TaurusRootLogger: :1: DeprecationWarning: _get_value is deprecated since 4.0. Use .rvalue instead while True: print(taurus.Attribute('sys/tg_test/1/long_scalar').read().value); time.sleep(0.3)
61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61 61