Closedown
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
name=Motor Test 1
|
||||
description=moves to CCW switch; then for M times moves N times to CW switch then CCW switch; between each M pauses for delay; log at CCW and CW
|
||||
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
|
||||
|
||||
@@ -7,6 +7,16 @@ import traceback
|
||||
ret = 'Test failed'
|
||||
status = False
|
||||
#DEVICE = 'PO2DV-NCS-LS'
|
||||
#get parameters from the calling interface
|
||||
try:
|
||||
print "Running test with the following parameters:"
|
||||
print parameters
|
||||
loopTimes = parameters["repeatTimes"]
|
||||
except:
|
||||
print "Could not retrieve testing parameters: ", sys.exc_info()[0]
|
||||
ret = 'Could not retrieve testing parameters - ' + traceback.format_exc()
|
||||
success = False
|
||||
raise Exception('Could not retrieve testing parameters - ' + traceback.format_exc())
|
||||
|
||||
#TODO: Set the diplay names of positioners and detectors
|
||||
#scan = ManualScan(['idX', 'idInkr'], ['idMotorStatus', 'idLogicalPosition', 'idDiameter', 'idMotorPosition', 'idPotiRaw', 'idPotiProc', 'idBtvsRaw', 'idBtvsProc', 'idDiff01', 'idDiff02'] , [-0.5, 0.0], [4.0, 3000.0], [3000, 20])
|
||||
|
||||
Reference in New Issue
Block a user