This commit is contained in:
gac-iss
2020-01-21 11:28:51 +01:00
parent 3cf3479d3b
commit 34f06e1c15
4 changed files with 311 additions and 117 deletions
+10 -4
View File
@@ -1,8 +1,9 @@
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
NAME = None
IOC_AUTO_SAVE = False
DUMMY_TRIGGER = True #Trigger detector to update the array sizes and calibration
@@ -12,13 +13,18 @@ set_device_alias(scienta.stats[0], "sum")
sensors=[i0, scienta.stats[0], scienta.getSpectrum()] #), scienta.getDataMatrix()]
def trigger(position, scan):
scienta.start()
scienta.waitNewImage(-1)
if DUMMY_TRIGGER:
trigger(None, None)
if IOC_AUTO_SAVE:
capture.write(1)
def trigger(position, scan):
scienta.start()
scienta.waitNewImage(-1)
try: