Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Production Test Suite
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Production Test Suite
Commits
c3d43480
Commit
c3d43480
authored
Oct 17, 2014
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test02: fixed bug in DMTD vs CNT-91 delay calibration cross-check
parent
db87d3d1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test02.py
test/fmcdelay1ns4cha/python/test02.py
+2
-2
No files found.
test/fmcdelay1ns4cha/python/test02.py
View file @
c3d43480
...
@@ -221,8 +221,8 @@ def main (card=None, default_directory='.',suite=None):
...
@@ -221,8 +221,8 @@ def main (card=None, default_directory='.',suite=None):
print
(
"DDMTD vs CNT-91 cross-check:
\n
"
)
print
(
"DDMTD vs CNT-91 cross-check:
\n
"
)
for
i
in
range
(
0
,
4
):
for
i
in
range
(
0
,
4
):
err
=
dmtd_delays
[
i
]
+
calib
.
tdc_zero_offset
+
calib
.
out_zero_offset
[
i
]
-
dmtd_setpoint
-
dmtd_ff_offset
err
=
dmtd_delays
[
i
]
+
calib
.
tdc_zero_offset
+
calib
.
out_zero_offset
[
i
]
-
dmtd_setpoint
-
dmtd_ff_offset
print
(
"Channel
%
d : difference =
%
d ps, max =
%
d ps, status:
%
s "
%
(
i
+
1
,
err
,
dmtd_err_threshold
,
"OK"
if
abs
(
err
)
<
dmtd_err_threshold
else
"FAIL"
)
)
print
(
"Channel
%
d : difference =
%
d ps, max =
%
d ps, status:
%
s "
%
(
i
+
1
,
err
,
dmtd_err_threshold
,
"OK"
if
abs
(
err
)
<
=
dmtd_err_threshold
else
"FAIL"
)
)
if
(
err
>
dmtd_err_threshold
):
if
(
abs
(
err
)
>
dmtd_err_threshold
):
raise
PtsError
(
"DDMTD vs CNT-91 Cross-check failed. Probably a soldering issue with DDMTD calibration flip-flops or multiplexer"
)
raise
PtsError
(
"DDMTD vs CNT-91 Cross-check failed. Probably a soldering issue with DDMTD calibration flip-flops or multiplexer"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment