Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 2cha
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
FMC DEL 1ns 2cha
Commits
ddf0cb0f
Commit
ddf0cb0f
authored
Nov 03, 2016
by
Jan Pospisil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added bunch range support
parent
12b7c021
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
FFPG_CLI.py
sw/FFPG_CLI.py
+6
-1
No files found.
sw/FFPG_CLI.py
View file @
ddf0cb0f
...
...
@@ -34,6 +34,7 @@ if len(sys.argv) is not 4 and len(sys.argv) < 7:
print
" <pulseDelay> - non-negative float number in [ns]"
print
" <triggerLatency> - non-negative float number in [ns], or -1 (calibration disabled)"
print
" <bunches> - space separated list of bunch numbers, each 0-3563"
print
" Can also be range(s) of bunches like: 0-6 10-50"
print
" If no bunches are provided, no pulses will be generated, but generator will run."
print
" Output will be in non-active state according to the <polarity>."
print
""
...
...
@@ -50,7 +51,11 @@ else:
triggerLatency
=
myFloat
(
sys
.
argv
[
6
])
bunches
=
[]
for
i
in
range
(
7
,
len
(
sys
.
argv
)):
bunches
.
append
(
myInt
(
sys
.
argv
[
i
]))
if
"-"
in
sys
.
argv
[
i
]:
startBunch
,
stopBunch
=
sys
.
argv
[
i
]
.
split
(
"-"
,
2
)
bunches
=
bunches
+
range
(
myInt
(
startBunch
),
myInt
(
stopBunch
))
else
:
bunches
.
append
(
myInt
(
sys
.
argv
[
i
]))
print
(
"Configuration:"
)
print
(
" fmcSlot (LUN) = "
+
str
(
fmcSlot
))
...
...
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