from test_common import *
RCUs=[0,1,2,3];

connect()
setRCUmask(RCUs)

def wait(var1="RECVTR_translator_busy_R"):
  for x in range(20):
    busy=get_value(var1)
#    print(busy)
    if not(busy): break
    time.sleep(0.1)
  print("Time=",x*0.1,"s")

#callmethod("RCU_off")
#wait()
#exit()
#time.sleep(2)
callmethod("RCU_on")
wait()
#callmethod("RCU_on")
#time.sleep(1)
#callmethod("ADC_on")

disconnect();