Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
Conv TTL Blocking
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
5
Issues
5
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
Conv TTL Blocking
Commits
283b0325
Commit
283b0325
authored
Mar 07, 2017
by
Projects
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests/pulse_rejection: generated pulsegen command specifies pulse width
parent
cc1d6075
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
pulse_rejection.py
software/tests/pulse_rejection.py
+10
-7
No files found.
software/tests/pulse_rejection.py
View file @
283b0325
...
...
@@ -45,7 +45,9 @@ if convttl.status.gw_version[0] != 4:
# selectt the test data set depending on the pulse duration switch
if
(
convttl
.
status
.
switch
[
1
]):
# short pulse
print
(
"Running short pulse tests"
)
mode
=
"short"
max_freq
=
2e6
pulse_len
=
250e-9
tests
=
(
{
'freq'
:
2000000
,
'pulses'
:
2e6
},
...
...
@@ -56,10 +58,11 @@ if(convttl.status.switch[1]):
{
'freq'
:
571000
,
'pulses'
:
571000
*
120
,
'continuous'
:
True
}
)
max_freq
=
2e6
else
:
# long pulse
print
(
"Running long pulse tests"
)
mode
=
"long"
max_freq
=
105e3
pulse_len
=
1.2e-6
tests
=
(
# {'freq': 104166, 'pulses': 104166},
...
...
@@ -71,7 +74,7 @@ else:
{
'freq'
:
52083
,
'pulses'
:
52083
*
120
,
'continuous'
:
True
},
)
max_freq
=
105e3
print
(
"Running
%
s pulse tests"
%
mode
)
# run tests
for
test
in
tests
:
...
...
@@ -93,7 +96,7 @@ for test in tests:
print
(
"------"
)
print
(
"TEST: repeat
%
d pulses at
%
d Hz"
%
(
pulses
,
freq
))
print
(
"Start the pulse burst generator (
%
d pulses)"
%
int
(
pulses
))
print
(
" ./pulsegen.py -c
%
d -f
%
F
"
%
(
pulses
,
freq
))
print
(
" ./pulsegen.py -c
%
d -f
%
F
-w
%
G"
%
(
pulses
,
freq
,
pulse_len
))
print
(
""
)
print
(
"Pulse counters:"
)
...
...
@@ -156,7 +159,7 @@ for test in tests:
print
(
""
)
print
(
"TEST: reject pulses after repeating
%
d pulses at
%
d Hz"
%
(
pulses
,
freq
))
print
(
"Start the pulse burst generator (
%
d pulses)"
%
(
pulses
*
2
))
print
(
" ./pulsegen.py -c
%
d -f
%
F
"
%
(
pulses
*
2
,
freq
))
print
(
" ./pulsegen.py -c
%
d -f
%
F
-w
%
G"
%
(
pulses
*
2
,
freq
,
pulse_len
))
print
(
""
)
print
(
"Pulse counters:"
)
...
...
@@ -229,7 +232,7 @@ print("------")
print
(
""
)
print
(
"TEST: reject pulses at too high frequency (FLIM_MISSED bit)"
)
print
(
"Start the pulse burst generator (
%
d pulses at
%
d Hz"
%
(
pulses
,
freq
))
print
(
" ./pulsegen.py -c
%
d -f
%
F
"
%
(
pulses
,
freq
))
print
(
" ./pulsegen.py -c
%
d -f
%
F
-w
%
G"
%
(
pulses
,
freq
,
pulse_len
))
print
(
""
)
test_run
=
True
...
...
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