Karabacon Scheduler¶
The Karabacon Scheduler is a middlelayer device to schedule and execute queued scans. This device has a scene containing:
A table to define the scans to be executed.
Buttons to start and stop the scans in the queue and a button to reset errors.
Plots.
A table displaying the queue execution progress.
Scheduling Scans¶
The following rules are applied to the scheduler table:
If in the row no scan parameters are provided then the current scantool settings are applied. In other words, the last scan is repeated.
The attribute Template defines a scantool template that will be loaded before the scan.
The attribute Repeat Type together with Duration defines how the scans are repeated. Loop will repeate scans n times where n is the Duration attribute. Time will execute scans for the time in seconds defined as Duration.
Enabling Reverse Direction will swap the start and stop positions after each scan.
If useDAQ is True then a DAQ run will be started before the first queue item and stopped after the last queue item.
Executing Scans¶
Scans within one scheduled row are joined and plotted as a single scan. If the consecutive scan has the same scan settings then the plot is not cleared and scan results are joined.