From a41911ab5103a5213545a7bb77e8e643c7429ceb Mon Sep 17 00:00:00 2001 From: gac-x03da Date: Thu, 23 Apr 2020 11:14:18 +0200 Subject: [PATCH] Script execution --- script/users/monney/TemperatureRamp.py | 34 +++++++++++++------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/script/users/monney/TemperatureRamp.py b/script/users/monney/TemperatureRamp.py index 95fee860..bb4e2b98 100644 --- a/script/users/monney/TemperatureRamp.py +++ b/script/users/monney/TemperatureRamp.py @@ -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: