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