def updating_writer(a):
 log.debug('updating the context')
 context = a[0]
 register = 3
 slave_id = 0
 address = 16
 values = context[slave_id].getValues(register, address, count=5)
 values = [(v + 1) for v in values]
 log.debug(('new values: ' + str(values)))
 context[slave_id].setValues(register, address, values)

def updating_writer ( a ) : log . debug ( 'updating the context' ) context = a [ 0 ] register = 3 slave_id = 0 address = 16 values = context [ slave_id ] . getValues ( register , address , count = 5 ) values = [ ( v + 1 ) for v in values ] log . debug ( ( 'new values: ' + str ( values ) ) ) context [ slave_id ] . setValues ( register , address , values )
a worker process that runs every so often and updates live values of the context .