Commit ba2dc33c authored by Jan Pospisil's avatar Jan Pospisil

bugfixes

parent 0c0a02a7
......@@ -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 ""
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment