""" parallel photon energy and manipulator scan """ import math global VECTOR, SENSORS MODE = "swept" LATENCY = 0.0 SENSORS = [Counts, Scienta.dataMatrix, SampleCurrent, RefCurrent, MachineCurrent] Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Swept) writables = (Eph, Scienta.lowEnergy, Scienta.highEnergy) adjust_sensors() set_adc_averaging() set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1}) n = 41 step=-0.5 try: eph = [172.0 + i * step for i in range(n)] elo = [132.5 + i * step for i in range(n)] ehi = [151.5 + i * step for i in range(n)] VECTOR = [[eph[i], elo[i], ehi[i]] for i in range(len(eph))] vscan(writables, SENSORS, VECTOR, True, LATENCY, False, before_read=before_readout, after_read = after_readout) finally: after_scan()