This commit is contained in:
gac-ISS
2023-01-17 17:18:18 +01:00
parent fe3cb1115a
commit 9eecf8740a
9 changed files with 308 additions and 175 deletions

View File

@@ -13,7 +13,8 @@ if FILE:
NAME , SCANS= cfg[0], cfg[1]
print "FILE: ", FILE
print "SCANS: ", SCANS
DUMMY_TRIGGER=False
"""
scienta.getState().assertReady()
@@ -37,12 +38,13 @@ sensors=[i0, scienta.getSpectrum()]
def before_read(position, scan):
trigger_scienta()
dummy_trigger_scienta()
clear_output()
if DUMMY_TRIGGER:
dummy_trigger_scienta()
try:
tscan(sensors, SCANS, 0.001, before_read=before_read, after_read=after_readout, name = NAME)
tscan(sensors, SCANS, 0.001, before_read=before_read, after_read=after_readout, name=NAME, lazy=not DUMMY_TRIGGER)
finally:
scienta.zeroSupplies()