This project contains the scripts and instructions for starting a sequencer and submitting sequences to the sequencer.
The test runs a single sequence step on a sequencer:
- Sequencer started and registered with Location Service
- Script loaded and initialized
- Sequence submitted from esw-shell
- onSetup handler fired and logged both messages
- Step completed successfully
Step 1) CSW with location service must be running locally
Step 2) cd to project base and run sbt with no arguments. This starts the sbt shell.
Step 3) From the sbt shell, run the command to load the sequence component with the script and register with location service"
reStart sequencer -s APS -n primary -m APS_testmode
This loads scripts/aps/Testmode.kts via the classpath config in scripts/aps/aps.conf and starts and registers the sequencer.
Start the esw-shell
cs launch esw-shell
At the shell prompt, enter the following commands to submit the sequence:
val sequencer = sequencerCommandService(Prefix(APS, "APS_testmode"))
val setup = Setup(Prefix("APS.test"), CommandName("aps-setup"), None)
val response = sequencer.submit(Sequence(setup)).get
The sbt shell log output will indicate that the step "aps-setup" was started and successfully completed.
Submitting sequences using a client program Submitting sequences from a user interface