31 lines
1.0 KiB
Python
31 lines
1.0 KiB
Python
import ch.psi.pshell.plot.RangeSelectionPlot.RangeSelection as RangeSelection
|
|
|
|
|
|
SENSORS = (Counts, Scienta.dataMatrix, SampleCurrent, RefCurrent, MachineCurrent)
|
|
PHI_RANGE = (-60., 60.)
|
|
THETA_RANGE = (-9., 71)
|
|
STEPS = (3,3)
|
|
LATENCY = False
|
|
RELATIVE = False
|
|
ZIGZAG = True
|
|
|
|
Eph.move(801.)
|
|
Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Fixed)
|
|
Scienta.centerEnergy.write(353.)
|
|
# Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Swept)
|
|
#Scienta.lowEnergy.write(100.)
|
|
#Scienta.highEnergy.write(120.)
|
|
#Scienta.stepSize.write(0.1)
|
|
Scienta.setPassEnergy(50)
|
|
Scienta.stepTime.write(1)
|
|
Scienta.setIterations(1)
|
|
ExitSlit.write(51.)
|
|
Scienta.update()
|
|
|
|
adjust_sensors()
|
|
set_adc_averaging()
|
|
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
|
|
ascan((ManipulatorPhi, ManipulatorTheta), SENSORS, (PHI_RANGE[0], THETA_RANGE[0]), (PHI_RANGE[1], THETA_RANGE[1]), STEPS, LATENCY, RELATIVE, zigzag = ZIGZAG, \
|
|
before_read=before_readout, after_read = after_readout, compression = True)
|
|
|