The following lines show how a client can monitor a motor position using events. Before this script can be executed the server has to be configured accordingly. A polling period has to be specified and e.g. the relative change that generates the event. Both parameters can be set using jive. It is also necessary that the Events Notify Daemon is running.
#!/usr/bin/python from PyTango import * import time class PyCallback: def push_event( self, event): if not event.err: print( event.attr_name, event.attr_value.value) else: print( event.errors) proxy = DeviceProxy( 'someHost:10000/p09/motor/exp.01') cb = PyCallback() ev = proxy.subscribe_event( 'Position', EventType.CHANGE, cb, []) while 1: time.sleep(0.1)