This commit is contained in:
gac-iss
2020-01-20 09:24:10 +01:00
parent 1e7bd8cb97
commit e676faaefd
4 changed files with 9 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ if get_exec_pars().source == CommandSource.ui:
sensors=[i0, scienta.stats[0], scienta.getSpectrum()]
caputq("NAPP-SCIENTA:HDF1:Capture",1)
capture.write(1)
def trigger(position, scan):
scienta.start()
@@ -16,5 +16,5 @@ def trigger(position, scan):
try:
rscan(energy, sensors, REGIONS, latency = 0.0, before_read=trigger)
finally:
caputq("NAPP-SCIENTA:HDF1:Capture",0)
capture.write(0)
scienta.zeroSupplies()