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

Startup script cleaned

parent 3e605095
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=True; #False do not restart, but only check status
restart_clk=True; #False do not restart, but only check status
restart_rcu=True; #False do not restart, but only check status
RCUs=[0,1,2,3];
#RCUs=[0,1,2,3,4,5,6,7];
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",timeout_sec=2)
if restart_clk:
print("Startup CLK");
callmethod("CLK_off")
wait_not_busy("CLK_translator_busy_R")
callmethod("CLK_on")
wait_not_busy("CLK_translator_busy_R",timeout_sec=2)
print("CLK status:")
locked=get_value("CLK_PLL_locked_R")
......@@ -19,11 +22,12 @@ else: #not locked:
else: print (" CLK not locked! Subrack probably do not receive clock input (or CLK PCB broken)")
setRCUmask(RCUs)
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",timeout_sec=5)
if restart_rcu:
print("Startup RCUs:",RCUs);
callmethod("RCU_off")
wait_not_busy("RCU_translator_busy_R")
callmethod("RCU_on")
wait_not_busy("RCU_translator_busy_R",timeout_sec=5)
print("RCU status:")
i2c_status=get_value("RCU_I2C_STATUS_R")
......
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