Script execution
This commit is contained in:
+13
-3
@@ -288,7 +288,16 @@ def wait_inj (value, delay=0.5):
|
||||
def set_file(file_name):
|
||||
FILENAME = file_name
|
||||
|
||||
|
||||
class pol_mode_index(Readable):
|
||||
def read(self):
|
||||
mode = pol_mode.read
|
||||
if mode = "LINEAR": return 0
|
||||
if mode = "CIRC +": return 1
|
||||
if mode = "CIRC -": return 2
|
||||
return -1;
|
||||
pmi = pol_mode_index()
|
||||
|
||||
|
||||
def otf(start, end, time, delay=0.0):
|
||||
run("EnergyScan", {"E1":start, "E2":end, "TIME":time, "DELAY":float(delay), "MODE":None, "OFFSET":None, "FOLDER":None, "FILE":None, "ALPHA":None})
|
||||
|
||||
@@ -307,12 +316,13 @@ def hyst_step_mult(forward, ranges, ramp_speed, energies):
|
||||
def scan_e(start, end, step, settling_time = 0, accumulation_time = None):
|
||||
#wait_beam()
|
||||
acc = Accumulator([signal_tey, signal_i0, signal_trans], accumulation_time)
|
||||
detectors = acc.getSensors() + [pol_mode, pol_angle, temperature, current]
|
||||
|
||||
detectors = acc.getSensors() + [pmi, pol_angle, temperature, current]
|
||||
lscan(energy, detectors, float(start), float(end), float(step), latency = settling_time)
|
||||
|
||||
def scan_e_mult(ranges, settling_time = 0, accumulation_time = None):
|
||||
acc = Accumulator([signal_tey, signal_i0, signal_trans], accumulation_time)
|
||||
detectors = acc.getSensors() + [pol_mode, pol_angle, temperature, current]
|
||||
detectors = acc.getSensors() + [pmi, pol_angle, temperature, current]
|
||||
rscan(energy, detectors, ranges, latency = settling_time)
|
||||
|
||||
#not connected
|
||||
|
||||
Reference in New Issue
Block a user