This commit is contained in:
gac-iss
2020-01-20 16:46:59 +01:00
parent 4f5fe44208
commit 3cf3479d3b
8 changed files with 211 additions and 77 deletions
+14 -5
View File
@@ -1,20 +1,29 @@
if get_exec_pars().source == CommandSource.ui:
REGIONS = [[523.0, 527.0, 2.0], [527.0, 535.0, 4.0], [535.0, 558.0, 2.0]]
NAME = None
IOC_AUTO_SAVE = False
sensors=[i0, scienta.stats[0], scienta.getSpectrum()]
set_device_alias(scienta.getSpectrum(), "spectrum")
set_device_alias(scienta.getDataMatrix(), "image")
set_device_alias(scienta.stats[0], "sum")
sensors=[i0, scienta.stats[0], scienta.getSpectrum()] #), scienta.getDataMatrix()]
capture.write(1)
if IOC_AUTO_SAVE:
capture.write(1)
def trigger(position, scan):
scienta.start()
cienta.waitNewImage(-1)
scienta.waitNewImage(-1)
try:
rscan(energy, sensors, REGIONS, latency = 0.0, before_read=trigger)
rscan(energy, sensors, REGIONS, latency = 0.0, before_read=trigger, after_read=after_readout, name = NAME)
finally:
capture.write(0)
if IOC_AUTO_SAVE:
capture.write(0)
scienta.zeroSupplies()