diff --git a/scripts/Startup.py b/scripts/Startup.py index 94abb5141b6007c42e25ce8b158819b61139c962..86726ed897ed94f1c666f7a09711f54fa0ffb784 100644 --- a/scripts/Startup.py +++ b/scripts/Startup.py @@ -1,13 +1,13 @@ from test_common import * RCUs=[0,1,2,3,4,5,6,7]; -restart=False; #False do not restart, but only check status +restart=True; #False do not restart, but only check status if restart: print("Startup CLK"); if restart: callmethod("CLK_off") wait_not_busy("CLK_translator_busy_R") if restart: callmethod("CLK_on") -wait_not_busy("CLK_translator_busy_R") +wait_not_busy("CLK_translator_busy_R",timeout_sec=2) print("CLK status:") locked=get_value("CLK_PLL_locked_R") @@ -23,8 +23,7 @@ if restart: print("Startup RCUs:",RCUs); if restart: callmethod("RCU_off") wait_not_busy("RCU_translator_busy_R") if restart: callmethod("RCU_on") -wait_not_busy("RCU_translator_busy_R") - +wait_not_busy("RCU_translator_busy_R",timeout_sec=5) print("RCU status:") i2c_status=get_value("RCU_I2C_STATUS_R") diff --git a/scripts/test_common.py b/scripts/test_common.py index fc1aa73bdce275fddac9b87be8d3b8189aa551d0..7c22befede40fd77c6049865cd527598c9c6c8b6 100644 --- a/scripts/test_common.py +++ b/scripts/test_common.py @@ -63,7 +63,7 @@ def callmethod(name): # print("error") return None -def wait_not_busy(var1,timeout_sec=2): +def wait_not_busy(var1,timeout_sec=1): for x in range(int(timeout_sec*10)): busy=get_value(var1) if not(busy):