Closedown

This commit is contained in:
boccioli_m
2015-06-12 11:46:18 +02:00
parent 2133325ea1
commit 6bd2eda255
2 changed files with 8 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ ret = 'Test failed'
status = False
#TODO: Set the diplay names of positioners and detectors
scan = ManualScan(['idX', 'idInkr'], ['idMotorStatus', 'idLogicalPosition', 'idDiameter', 'idMotorPosition', 'idPotiRaw', 'idPotiProc', 'idBtvsRaw', 'idBtvsProc', 'idDiff01', 'idDiff02'] , [40.0, 0.0], [44.0, 10.0], [3000, 20])
scan = ManualScan(['idX', 'idInkr'], ['idMotorStatus', 'idLogicalPosition', 'idDiameter', 'idMotorPosition', 'idPotiRaw', 'idPotiProc', 'idBtvsRaw', 'idBtvsProc', 'idDiff01', 'idDiff02'] , [-0.5, 0.0], [4.0, 11.0], [3000, 20])
scan.start()
#Creating channels: dimension 1
@@ -51,7 +51,7 @@ for setpoint1 in range(0, 3):
readback1 = setpoint1
sleep( 0.1 ) # Settling time
#RegionPositioner idInkr
for setpoint2 in frange(40.0, 44.0, 1.0, True) + frange(11.0, 0.0, -1.0, True):
for setpoint2 in frange(40.0, 42.0, 1.0, True) + frange(11.0, 0.0, -1.0, True):
idInkr.put(setpoint2, timeout=None) # TODO: Set appropriate timeout
readback2 = idInkr.get()
if abs(readback2 - setpoint2) > 0.5 : # TODO: Check accuracy