Closedown
This commit is contained in:
@@ -11,6 +11,11 @@ MODE = 'CIRC +'
|
|||||||
OFFSET = -1.0
|
OFFSET = -1.0
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
controller.dataManager.openOutput()
|
||||||
|
print "Data folder: " + controller.dataManager.output
|
||||||
|
#TODO: Print filename
|
||||||
|
|
||||||
|
|
||||||
FIELD_PRECISION = 0.01
|
FIELD_PRECISION = 0.01
|
||||||
|
|
||||||
#Pre-actions
|
#Pre-actions
|
||||||
@@ -73,7 +78,7 @@ print "SKIPPED Waiting for start field"
|
|||||||
#caput("X07MA-PC-MAG:X:DMD", START_FIELD)
|
#caput("X07MA-PC-MAG:X:DMD", START_FIELD)
|
||||||
#caput("X07MA-PC-MAG:STARTRAMP.PROC", 1)
|
#caput("X07MA-PC-MAG:STARTRAMP.PROC", 1)
|
||||||
|
|
||||||
#ramp_done.wait_for_value(1.0)
|
ramp_done.wait_for_value(1.0)
|
||||||
|
|
||||||
cawait('X07MA-ID:DONE', 'DONE', type = 's')
|
cawait('X07MA-ID:DONE', 'DONE', type = 's')
|
||||||
|
|
||||||
@@ -140,13 +145,13 @@ while(True):
|
|||||||
else:
|
else:
|
||||||
dif = tey_norm-first
|
dif = tey_norm-first
|
||||||
dif_series.appendData(field_readback,dif)
|
dif_series.appendData(field_readback,dif)
|
||||||
print [field_readback, setpoint2]
|
#print [field_readback, setpoint2]
|
||||||
print [field_readback, readback2]
|
#print [field_readback, readback2]
|
||||||
print [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, tey_norm, trans_norm]
|
#print [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, tey_norm, trans_norm]
|
||||||
scan.append ([field_readback, setpoint2], [field_readback, readback2], [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, tey_norm, trans_norm])
|
scan.append ([field_readback, setpoint2], [field_readback, readback2], [detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, tey_norm, trans_norm])
|
||||||
|
|
||||||
|
|
||||||
print "Field = " + str(fieldReadback.get())
|
#print "Field = " + str(fieldReadback.get())
|
||||||
if ramp_done.get() == 1: #If not ramping
|
if ramp_done.get() == 1: #If not ramping
|
||||||
print "Not ramping, breaking execution"
|
print "Not ramping, breaking execution"
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class Strategy(ch.psi.pshell.data.ScanPersistenceStrategyTable):
|
|||||||
def getDatasetName(self, scan):
|
def getDatasetName(self, scan):
|
||||||
global FILENAME
|
global FILENAME
|
||||||
name = controller.getExecutingContext() if FILENAME is None else FILENAME
|
name = controller.getExecutingContext() if FILENAME is None else FILENAME
|
||||||
return time.strftime('%Y%m%d%H%M%S') + '_' + FILENAME + '_' + str(controller.dataManager.getScanIndex()).zfill(4)
|
return time.strftime('%Y%m%d_%H%M') + '_' + FILENAME + '_' + str(controller.dataManager.getScanIndex()).zfill(4)
|
||||||
controller.dataManager.setScanStrategy(Strategy())
|
controller.dataManager.setScanStrategy(Strategy())
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user