Script execution

This commit is contained in:
x03daop
2017-04-12 11:01:08 +02:00
parent 9a0d4e185d
commit f0fc7aa5b6

View File

@@ -53,6 +53,11 @@ class SpectrumReader(ReadonlyRegisterBase, ReadonlyRegisterArray):
Scienta.setIterations(self.region['iter'])
Scienta.update()
print Scienta.getAcquirePeriod()
print Scienta.getAcquisitionTime().getValue()
print Scienta.getExposure()
print Scienta.getStepTime().getValue()
append_dataset(self.channel_begin_dataset_name, elo)
append_dataset(self.channel_end_dataset_name, ehi)
append_dataset(self.pass_energy_dataset_name, self.region['epass'])
@@ -139,7 +144,7 @@ def do_scan(motors, positions, regions, latency):
try:
set_preference(Preference.PLOT_TYPES, {'Scienta spectrum':1})
task = fork(plot_cur_spectrum)
#task = fork(plot_cur_spectrum)
do_scan(MOTORS, POSITIONS, REGIONS, LATENCY)
finally:
if CLOSE_SHUTTER_AT_END: