APS-U Beam line Data Pipelines - experiment controls with EPICS and Bluesky
Copyright (c) 2022 - Advanced Photon Source, ANL Open Source License
Provides
See the bluesky-queueserver section below.
The instrument configuration is based on the bluesky_training repository.
It is defined here in the qserver/instrument
directory.
catalog name: bdp2022
See the plans listed as the queueserver environment is opened (which loads the instrument devices & plans and starts a RunEngine instance).
See README
- https://github.com/bluesky/bluesky-queueserver
- https://github.com/bluesky/bluesky-queueserver-api
- https://github.com/bluesky/bluesky-httpserver
See the README in the tiled
section.
These commands in sequence in a terminal starting from an APS workstation with X11 running.
ssh -X bdp@terrier
become_bluesky
cd ~/qserver/
queue-monitor &
- ... the GUI starts in its own window
- click
Connect
in the Queue Server box on theMonitor Queue
side tab - click on the
Edit and Control Queue
side tab - In the
HISTORY
table, find the lastcompleted
run and click it - Above the table, click the
Copy to Queue
button - New item should appear in the
QUEUE
table - In the
Queue
section (near top of window), clickStart
button - Watch things work... Console output will indicate when things are done.
- Under
RE Manager Status
, all is done whenManager state
isIDLE
qserver-console-monitor
- Leave this running in the terminal window. It shows any/all output from the bluesky queueserver.
Sometimes, the queueserver stalls while trying to open the RunEngine environment. Have not yet identified the root cause. This is the symptom of a stuck process. To resolve:
- login to
bdp@terrier
become_bluesky
cd qserver
export BDP_DEMO=M15
./qserver.sh restart
The export step is easily forgotten. This step configures the
bluesky devices & plans for the current demo. Use M16
as the
value for the BDP M16 milestone in September 2023.