Closedown

This commit is contained in:
x03daop
2016-03-08 17:12:21 +01:00
parent 715e8c7120
commit 1fb846e2e4
2 changed files with 12 additions and 2 deletions
+2
View File
@@ -161,6 +161,8 @@ public class PhotonEnergy extends Panel {
args.put("SENSORS", sensors);
args.put("VECTOR", getVector());
args.put("LATENCY", (Double) spinnerLatency.getValue());
args.put("MODE", radioSwept.isSelected() ? "swept" :"fixed");
args.put("STEP", (Double) spinnerStep.getValue());
runAsync("PhotonEnergy", args);
running = true;
}
+10 -2
View File
@@ -4,11 +4,19 @@ Arguments:
VECTOR (Double[][], Scan vector: Eph,Elow,Ehigh or Eph,Ecenter)
SENSORS (list)
LATENCY (double)
MODE ('fixed' or 'swept')
STEP (double)
"""
if MODE == "swept":
Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Swept)
Scienta.getStepSize().write(STEP)
else:
Scienta.setAcquisitionMode(ch.psi.pshell.epics.Scienta.AcquisitionMode.Fixed)
adjust_sensors()
set_adc_averaging()
#set_preference(Preference.PLOT_TYPES,{'ImageEnergyDistribution':1})
set_preference(Preference.PLOT_TYPES,{'ImageEnergyDistribution':1})
set_preference(Preference.PLOT_TYPES,{'ImageAngleDistribution':1})
if len(VECTOR[0]) == 2:
#FIXED
@@ -16,5 +24,5 @@ if len(VECTOR[0]) == 2:
else:
#SWEPT
writables = (Eph, Scienta.lowEnergy, Scienta.highEnergy)
print SENSORS
vscan(writables, SENSORS, VECTOR, True, LATENCY,False, before_read=trig_scienta, after_read = after_readout)