21 lines
434 B
Python
Executable File
21 lines
434 B
Python
Executable File
|
|
START = 0
|
|
END = 10
|
|
STEPS = 4
|
|
|
|
################
|
|
|
|
|
|
en = DummyPositioner("DummyEnergy")
|
|
add_device(en, True)
|
|
|
|
set_device_alias(scienta.getDataMatrix(), "image")
|
|
set_device_alias(scienta.stats[0], "sum")
|
|
|
|
sensors=[current, scienta.stats[0], scienta.getDataMatrix()]
|
|
|
|
try:
|
|
lscan(en, sensors, START, END, STEPS, latency = 0.0, before_read=trigger_scienta, after_read=handle_diagnostics, save=True)
|
|
finally:
|
|
scienta.zeroSupplies()
|