Skip to content

tmtsoftware/aps-sequencer-prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aps-sequencer-prototype

This project contains the scripts and instructions for starting a sequencer and submitting sequences to the sequencer.

Running Test 1

The test runs a single sequence step on a sequencer:

  1. Sequencer started and registered with Location Service
  2. Script loaded and initialized
  3. Sequence submitted from esw-shell
  4. onSetup handler fired and logged both messages
  5. Step completed successfully

Starting up and registering the sequencer

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.

Submit sequences using esw-shell

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.

Next Steps

Submitting sequences using a client program Submitting sequences from a user interface

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors