Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
PyPCC
Commits
008bc565
Commit
008bc565
authored
3 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
Startup script cleaned
parent
3e605095
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/Startup.py
+16
-12
16 additions, 12 deletions
scripts/Startup.py
with
16 additions
and
12 deletions
scripts/Startup.py
+
16
−
12
View file @
008bc565
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
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment