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
ba2dc33c
Commit
ba2dc33c
authored
Nov 03, 2016
by
Jan Pospisil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfixes
parent
0c0a02a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
FFPG_CLI.py
sw/FFPG_CLI.py
+9
-7
No files found.
sw/FFPG_CLI.py
View file @
ba2dc33c
...
...
@@ -2,7 +2,7 @@
# coding: utf8
import
sys
#
from Ffpg import *
from
Ffpg
import
*
def
myInt
(
s
):
if
s
.
isdigit
():
...
...
@@ -96,6 +96,8 @@ pg = Ffpg(fmcSlot)
if
polarity
==
"stop"
:
pg
.
StopChannel
(
channel
)
pg
.
DisableChannel
(
channel
)
print
"Done, channel stopped."
print
""
sys
.
exit
();
# initialize the driver
...
...
@@ -114,6 +116,12 @@ if triggerPhase > -1:
else
:
print
(
" (Skipping this calibration, no calibration data (-1) provided.)"
)
# create bunched pulses
pg
.
ResetBadState
(
channel
)
pg
.
CreateBunchPulses
(
channel
,
pulseDelay
,
pulseWidth
,
bunches
,
polarity
)
pg
.
EnableChannel
(
channel
)
pg
.
StartChannel
(
channel
)
# print some info
pg
.
PrintVersion
()
# print("Actual temperature: "+str(pg.temp.ReadTemperature()) + " °C")
...
...
@@ -123,12 +131,6 @@ pg.PrintControl()
pg
.
PrintStatus
()
pg
.
PrintDebug
()
# create bunched pulses
pg
.
ResetBadState
(
channel
)
pg
.
CreateBunchPulses
(
channel
,
pulseDelay
,
pulseWidth
,
bunches
,
polarity
)
pg
.
EnableChannel
(
channel
)
pg
.
StartChannel
(
channel
)
print
""
print
"Done."
print
""
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