This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user