57 lines
1.9 KiB
Python
57 lines
1.9 KiB
Python
|
|
POSITIONERS = [dummy, ManipulatorCoolFlowSet]
|
|
RELATIVE = False
|
|
SENSORS = (Counts, SampleCurrent, RefCurrent, MachineCurrent, EnergyDistribution, AngleDistribution, Scienta.dataMatrix, ManipulatorTempA, ManipulatorTempB, ManipulatorCoolFlow)
|
|
LATENCY = 0.0
|
|
|
|
adjust_sensors()
|
|
set_adc_averaging()
|
|
set_exec_pars(compression=True)
|
|
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
|
|
|
|
|
|
def set_4f():
|
|
Eph.move(200.)
|
|
Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Swept)
|
|
Scienta.lowEnergy.write(130.5)
|
|
Scienta.highEnergy.write(137.0)
|
|
Scienta.stepSize.write(0.01)
|
|
Scienta.setPassEnergy(int(50))
|
|
Scienta.stepTime.write(0.0588)
|
|
Scienta.setIterations(1)
|
|
ExitSlit.write(200.)
|
|
Scienta.update()
|
|
|
|
def set_survey():
|
|
Eph.move(1500.)
|
|
Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Swept)
|
|
Scienta.lowEnergy.write(800.)
|
|
Scienta.highEnergy.write(1500.)
|
|
Scienta.stepSize.write(0.1)
|
|
Scienta.setPassEnergy(int(50))
|
|
Scienta.stepTime.write(0.0588)
|
|
Scienta.setIterations(1)
|
|
ExitSlit.write(200.)
|
|
Scienta.update()
|
|
|
|
|
|
try:
|
|
set_survey()
|
|
lscan(POSITIONERS, SENSORS, (1., 10.), (1., 10.), 1, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
|
|
|
set_4f()
|
|
lscan(POSITIONERS, SENSORS, (300., 15.), (10., 40.), 150, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
|
|
|
set_survey()
|
|
lscan(POSITIONERS, SENSORS, (1., 40.), (1., 40.), 1, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
|
|
|
set_4f()
|
|
lscan(POSITIONERS, SENSORS, (10., 20.), (300., 0.), 150, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
|
|
|
set_survey()
|
|
lscan(POSITIONERS, SENSORS, (1., 0.), (1., 0.), 1, LATENCY, RELATIVE, before_read=before_readout, after_read = after_readout)
|
|
|
|
finally:
|
|
if ENDSCAN:
|
|
after_scan()
|