Script execution
This commit is contained in:
34
script/optics/FocusTemperatureScan.py
Normal file
34
script/optics/FocusTemperatureScan.py
Normal file
@@ -0,0 +1,34 @@
|
||||
"""
|
||||
Focusing mirror temperature scan
|
||||
|
||||
"""
|
||||
|
||||
import math
|
||||
|
||||
FmuTemperatureSet = ch.psi.pshell.epics.ChannelDouble("X03DA-PC-HUBER:TEMP-SP")
|
||||
FmuTemperatureRbk = ch.psi.pshell.epics.ChannelDouble("X03DA-PC-HUBER:TEMP-I-RBV")
|
||||
|
||||
#MOTORS = ["ca://X03DA-PC-HUBER:TEMP-SP"]
|
||||
#SENSORS = [OpticsCameraCentroidX, OpticsCameraSigmaX, "ca://X03DA-PC-HUBER:TEMP-I-RBV"]
|
||||
MOTORS = [FmuTemperatureSet]
|
||||
SENSORS = [OpticsCameraCentroidX, OpticsCameraSigmaX, FmuTemperatureRbk]
|
||||
STARTPOS = 21.5
|
||||
ENDPOS = 23.0
|
||||
STEPS = 0.1
|
||||
RELATIVE = False
|
||||
LATENCY = 60.0
|
||||
ENDSCAN = False
|
||||
|
||||
adjust_sensors()
|
||||
set_adc_averaging()
|
||||
|
||||
def trig_sensors():
|
||||
wait_beam()
|
||||
|
||||
try:
|
||||
#caput("X03DA-PC-HUBER:TEMP-SP", STARTPOS)
|
||||
#time.sleep(240.0)
|
||||
lscan(MOTORS, SENSORS, STARTPOS, ENDPOS, STEPS, LATENCY, RELATIVE, before_read=trig_sensors, after_read = after_readout)
|
||||
finally:
|
||||
if ENDSCAN:
|
||||
after_scan()
|
||||
Reference in New Issue
Block a user