Skip to content
Snippets Groups Projects
Commit 3e605095 authored by Paulus Kruger's avatar Paulus Kruger
Browse files

startup scripts

parent 599e991d
No related branches found
No related tags found
No related merge requests found
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")
......
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment