Closedown
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
#Script imported from: Fe_hyst_plus.xml
|
||||
|
||||
#Parameters
|
||||
START_FIELD = 1.0
|
||||
END_FIELD = -1.0
|
||||
START_FIELD = -1.0
|
||||
END_FIELD = 1.0
|
||||
ENERGIES = (707.90, 703.90)
|
||||
|
||||
#Pre-actions
|
||||
@@ -16,8 +16,15 @@ caputq('X07MA-PC:CSCALER.INPB', '1')
|
||||
caputq('X07MA-PC-PS2:SET:DMD:RAMPRATE:TPM', '2.0')
|
||||
#sleep(15.0)
|
||||
|
||||
#TODO: Set the diplay names of positioners and detectors
|
||||
scan = ManualScan(['index', 'Energy'], ['FieldRbk', 'TEY', 'I0', 'trans', 'polarization', 'polAngle', 'temperature', 'RingCurrent', 'fieldAnalogX', 'tey_norm', 'trans_norm'] , [0.0, 703.9], [80.0, 707.9], [80, 1])
|
||||
set_preference(Preference.ENABLED_PLOTS, ['FieldRbk', 'tey_norm', 'trans_norm'])
|
||||
set_preference(Preference.PLOT_TYPES, {'FieldRbk':1, 'tey_norm':1, 'trans_norm':1})
|
||||
|
||||
#TODO:
|
||||
#Option to have time scane for X
|
||||
#Separate 2 series in 1D plot
|
||||
#Plot differences of 2 plotsin tey_norm
|
||||
|
||||
scan = ManualScan(['index', 'Energy'], ['FieldRbk', 'TEY', 'I0', 'trans', 'polarization', 'polAngle', 'temperature', 'RingCurrent', 'fieldAnalogX', 'tey_norm', 'trans_norm'])
|
||||
scan.start()
|
||||
|
||||
#Stop condition
|
||||
@@ -104,6 +111,7 @@ while(True):
|
||||
|
||||
scan.append ([index, setpoint2], [index, readback2], [field_readback, detector1, detector2, detector3, detector4, detector5, detector6, detector7, detector8, tey_norm, trans_norm])
|
||||
|
||||
|
||||
print "Field = " + str(fieldReadback.get())
|
||||
if ramp_done.get() == 1: #If not ramping
|
||||
print "Not ramping, breaking execution"
|
||||
|
||||
Reference in New Issue
Block a user