Closedown
This commit is contained in:
@@ -4,4 +4,4 @@ filename=Motor Test 3.xml
|
||||
|
||||
#optional parameters. Description is compulsory. Syntax:
|
||||
#parameters=<parameter1Name>:<parameter1Value>:<Parameter 1 description>[;<parameter1Name>:<parameter1Value>:<Parameter 1 description>]
|
||||
parameters=repeatTimes:3:Repeat times
|
||||
parameters=repeatTimes:3:Repeat times;delayS:5:Delay [s]
|
||||
|
||||
@@ -12,6 +12,7 @@ try:
|
||||
print "Running test with the following parameters:"
|
||||
print parameters
|
||||
loopTimes = parameters["repeatTimes"]
|
||||
delaySeconds = = parameters["delayS"]
|
||||
except:
|
||||
print "Could not retrieve testing parameters: ", sys.exc_info()[0]
|
||||
ret = 'Could not retrieve testing parameters - ' + traceback.format_exc()
|
||||
@@ -85,7 +86,7 @@ setpoint2 = end
|
||||
loopTimes = 2
|
||||
count = 0
|
||||
for setpoint1 in range(0, loopTimes):
|
||||
sleep( 2 ) # Settling time
|
||||
sleep( delaySeconds ) # Settling time
|
||||
#RegionPositioner idInkr
|
||||
idInkr.put(setpoint2, timeout=None) # TODO: Set appropriate timeout
|
||||
readback2 = idInkr.get()
|
||||
|
||||
Reference in New Issue
Block a user