Closedown
This commit is contained in:
@@ -13,8 +13,6 @@ if MODE == "swept":
|
||||
Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Swept)
|
||||
else:
|
||||
Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Fixed)
|
||||
adjust_sensors()
|
||||
set_adc_averaging()
|
||||
|
||||
if len(VECTOR[0]) == 2:
|
||||
#FIXED
|
||||
@@ -26,6 +24,8 @@ else:
|
||||
Scienta.highEnergy.write(VECTOR[0][2])
|
||||
writables = (Eph, Scienta.lowEnergy, Scienta.highEnergy)
|
||||
|
||||
adjust_sensors()
|
||||
set_adc_averaging()
|
||||
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
|
||||
|
||||
try:
|
||||
|
||||
@@ -63,6 +63,7 @@ try:
|
||||
wait_beam()
|
||||
trig_scienta()
|
||||
spectrum_array = Scienta.spectrum.read()
|
||||
spectrum_array[0]=10
|
||||
if beam_ok:
|
||||
break
|
||||
if ydata is None:
|
||||
|
||||
+3
-1
@@ -252,7 +252,9 @@ def set_adc_averaging():
|
||||
AuxCurrentAveraging.write(value)
|
||||
AuxVoltageAveraging.write(value)
|
||||
|
||||
def adjust_sensors():
|
||||
def adjust_sensors():
|
||||
#Updating ranges from Scienta
|
||||
Scienta.update()
|
||||
global SENSORS
|
||||
if SENSORS is not None:
|
||||
# Move integration to end
|
||||
|
||||
Reference in New Issue
Block a user