Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python_test_scripts
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
python_test_scripts
Commits
99bf434a
Commit
99bf434a
authored
2 years ago
by
Gijs Schoonderbeek
Browse files
Options
Downloads
Patches
Plain Diff
Used for testing 3 L2TS boards
parent
db15a0a5
No related branches found
No related tags found
1 merge request
!6
Apsct ad9511
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
production_apsct.py
+4
-0
4 additions, 0 deletions
production_apsct.py
with
4 additions
and
0 deletions
production_apsct.py
+
4
−
0
View file @
99bf434a
...
...
@@ -16,6 +16,7 @@ Check APSCT_CLK
"""
import
apsct_lib
import
sys
import
time
READ_ALL
=
False
# True
...
...
@@ -33,6 +34,7 @@ for mode in modi:
print
(
f
"
Check APSCT in
{
mode
}
mode
"
)
apsct
.
frequency
=
mode
apsct
.
set_apsct
()
time
.
sleep
(
1
)
if
mode
==
"
200MHz
"
:
state
=
state
&
apsct
.
pll_200
.
read_lock
()
if
mode
==
"
160MHz
"
:
...
...
@@ -40,6 +42,7 @@ for mode in modi:
apsct
.
frequency
=
"
200MHz
"
apsct
.
set_apsct
()
time
.
sleep
(
1
)
apsct
.
pll_200
.
read_lock
()
apsct
.
sensors
.
apsct_sensors
()
state
=
state
&
apsct
.
check_apsct
()
...
...
@@ -55,6 +58,7 @@ if state:
rw_ok
=
apsct
.
eeprom
.
wr_rd_eeprom
(
apsct_id
,
address
=
0
)
if
rw_ok
:
rw_ok
=
apsct
.
eeprom
.
wr_rd_eeprom
(
serial
,
address
=
0x20
)
print
(
"
APSCT tested successfully
"
)
if
not
rw_ok
:
print
(
"
EEPROM Error
"
)
else
:
...
...
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