12 lines
461 B
Python
12 lines
461 B
Python
value=50.0
|
|
in_position_band=None
|
|
print "Set sample temperature"
|
|
temperature.write(float(value))
|
|
if (in_position_band is None):
|
|
in_position_band = temperature.getResolution()
|
|
print "Precision",in_position_band
|
|
#temperature.readback.waitValueInRange(float(value), in_position_band, -1)
|
|
wait_device_in_range(temperature.readback, float(value), in_position_band, -1)
|
|
print "T set. Wait 10min"
|
|
time.sleep(600.0) # wait 10min
|
|
print "Done setting temperature" |