Script execution
This commit is contained in:
@@ -37,12 +37,12 @@ def set_survey():
|
||||
|
||||
def set_cool_down():
|
||||
temp = ManipulatorTempA.read()
|
||||
flow = min(40., 10. + 0.15 * (300. - temp))
|
||||
flow = max(0., min(40., 10. + 0.15 * (300. - temp)))
|
||||
ManipulatorCoolFlowSet.write(flow)
|
||||
|
||||
def set_cool_up():
|
||||
temp = ManipulatorTempA.read()
|
||||
flow = min(40., 0. + 0.15 * (300. - temp))
|
||||
flow = max(0., min(40., 0. + 0.15 * (300. - temp)))
|
||||
ManipulatorCoolFlowSet.write(flow)
|
||||
|
||||
def my_after_read_down(rec, scan):
|
||||
@@ -58,29 +58,29 @@ try:
|
||||
#set_survey()
|
||||
#lscan(POSITIONERS, SENSORS, 1., 1., 0, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
||||
|
||||
#print("4f ramping down")
|
||||
#set_4f()
|
||||
#caput('X03DA-PC-LAKESHORE:1-TEMP_SP', 10.)
|
||||
#print("scanning")
|
||||
#lscan(POSITIONERS, SENSORS, 0., 1., 180, LATENCY, RELATIVE, before_read=before_readout, after_read = my_after_read_down)
|
||||
print("4f ramping down")
|
||||
set_4f()
|
||||
caput('X03DA-PC-LAKESHORE:1-TEMP_SP', 10.)
|
||||
print("scanning")
|
||||
lscan(POSITIONERS, SENSORS, 0., 1., 400, LATENCY, RELATIVE, before_read=before_readout, after_read = my_after_read_down)
|
||||
|
||||
# print("wait for 10 K")
|
||||
# the timeout is dangerous, it may cause an exception!
|
||||
# time.sleep(600) # seconds
|
||||
# ManipulatorTempA.waitValueInRange(10., 5., 600000) # milliseconds
|
||||
|
||||
print("survey")
|
||||
set_survey()
|
||||
lscan(POSITIONERS, SENSORS, 1., 1., 0, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
||||
# print("survey")
|
||||
# set_survey()
|
||||
# lscan(POSITIONERS, SENSORS, 1., 1., 0, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
||||
|
||||
print("4f ramping up")
|
||||
set_4f()
|
||||
caput('X03DA-PC-LAKESHORE:1-TEMP_SP', 300.)
|
||||
lscan(POSITIONERS, SENSORS, 0., 1., 180, LATENCY, RELATIVE, before_read=before_readout, after_read = my_after_read_up)
|
||||
# print("4f ramping up")
|
||||
# set_4f()
|
||||
# caput('X03DA-PC-LAKESHORE:1-TEMP_SP', 300.)
|
||||
# lscan(POSITIONERS, SENSORS, 0., 1., 400, LATENCY, RELATIVE, before_read=before_readout, after_read = my_after_read_up)
|
||||
|
||||
print("survey")
|
||||
set_survey()
|
||||
lscan(POSITIONERS, SENSORS, 1., 1., 0, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
||||
# print("survey")
|
||||
# set_survey()
|
||||
# lscan(POSITIONERS, SENSORS, 1., 1., 0, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
||||
|
||||
finally:
|
||||
if ENDSCAN:
|
||||
|
||||
Reference in New Issue
Block a user