Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
9a158b6e
Commit
9a158b6e
authored
15 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Bug #1230: Corrected title.
parent
d7554076
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
StationTest/tc/sync_delay.py
+37
-37
37 additions, 37 deletions
StationTest/tc/sync_delay.py
with
37 additions
and
37 deletions
StationTest/tc/sync_delay.py
+
37
−
37
View file @
9a158b6e
"""
Read
the RSP status for one or all pid
, based on TCL testcase
11.1
"""
"""
Read
or write external sync input edge and input delay
, based on TCL testcase
2.2
"""
################################################################################
################################################################################
# - Verify options
# - Verify options
rspId
=
tc
.
rspId
rspId
=
tc
.
rspId
blpId
=
tc
.
bpId
blpId
=
tc
.
bpId
blpId
.
extend
(
tc
.
blpId
)
blpId
.
extend
(
tc
.
blpId
)
# Testcase specific options
# Testcase specific options
arg_edge
=
arg_pps_edge
arg_edge
=
arg_pps_edge
arg_delay
=
arg_pps_delay
arg_delay
=
arg_pps_delay
tc
.
appendLog
(
11
,
''
)
tc
.
appendLog
(
11
,
''
)
if
arg_read
:
if
arg_read
:
tc
.
appendLog
(
11
,
'
>>> Read PPS input delay status for RSP-%s, BLP-%s.
'
%
(
rspId
,
blpId
))
tc
.
appendLog
(
11
,
'
>>> Read PPS input delay status for RSP-%s, BLP-%s.
'
%
(
rspId
,
blpId
))
tc
.
appendLog
(
11
,
''
)
tc
.
appendLog
(
11
,
''
)
for
ri
in
rspId
:
for
ri
in
rspId
:
for
bi
in
blpId
:
for
bi
in
blpId
:
rsp
.
read_cr_sync_delay
(
tc
,
msg
,
[
bi
],
[
ri
])
rsp
.
read_cr_sync_delay
(
tc
,
msg
,
[
bi
],
[
ri
])
else
:
else
:
if
arg_delay
==
0
:
if
arg_delay
==
0
:
if
arg_edge
==
'
r
'
:
if
arg_edge
==
'
r
'
:
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on rising edge.
'
%
(
rspId
,
blpId
))
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on rising edge.
'
%
(
rspId
,
blpId
))
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
0
,
0
,
blpId
,
rspId
)
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
0
,
0
,
blpId
,
rspId
)
else
:
else
:
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on falling edge.
'
%
(
rspId
,
blpId
))
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Reset PPS input delay to default and capture on falling edge.
'
%
(
rspId
,
blpId
))
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
0
,
1
,
blpId
,
rspId
)
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
0
,
1
,
blpId
,
rspId
)
else
:
else
:
if
arg_edge
==
'
r
'
:
if
arg_edge
==
'
r
'
:
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on rising edge.
'
%
(
rspId
,
blpId
,
arg_delay
))
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on rising edge.
'
%
(
rspId
,
blpId
,
arg_delay
))
for
ri
in
range
(
arg_delay
):
for
ri
in
range
(
arg_delay
):
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
1
,
0
,
blpId
,
rspId
)
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
1
,
0
,
blpId
,
rspId
)
else
:
else
:
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on falling edge.
'
%
(
rspId
,
blpId
,
arg_delay
))
tc
.
appendLog
(
11
,
'
>>> RSP-%s, BLP-%s: Increment PPS input delay %d times and capture on falling edge.
'
%
(
rspId
,
blpId
,
arg_delay
))
for
ri
in
range
(
arg_delay
):
for
ri
in
range
(
arg_delay
):
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
1
,
1
,
blpId
,
rspId
)
rsp
.
write_cr_sync_delay
(
tc
,
msg
,
1
,
1
,
blpId
,
rspId
)
tc
.
appendLog
(
11
,
''
)
tc
.
appendLog
(
11
,
''
)
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