BCDA-APS / bdp_controls

APS-U Beam line Data Pipelines - experiment controls with EPICS and Bluesky
Other
0 stars 1 forks source link

EPICS database for control system feedback API #5

Closed prjemian closed 2 years ago

prjemian commented 2 years ago
prjemian commented 2 years ago

@keenanlang Do you know how to set the busy PV automatically to unknown after some time period (a few seconds, perhaps)? I assume there might be a keep_alive PV that bluesky will need to keep setting to keep the timer from expiring.

prjemian commented 2 years ago

keep alive feature watches for the python process to be stuck or quit

prjemian commented 2 years ago

example of stop & start the soft IOC:

(bluesky_2022_1) prjemian@zap:~/.../bdp_controls/feedback$ ./bpd_feedback.sh stop
Stopping 117556.bpd_feedback (pid=117558)
(bluesky_2022_1) prjemian@zap:~/.../bdp_controls/feedback$ ./bpd_feedback.sh start
Starting bpd_feedback with IOC prefix bpdfb:
Old : bpdfb:action 
New : bpdfb:action 
Old : bpdfb:status 
New : bpdfb:status EPICS bpd_feedback IOC started
(bluesky_2022_1) prjemian@zap:~/.../bdp_controls/feedback$ !caget
caget -S bpdfb:{busy,action,status}
bpdfb:busy                     unknown
bpdfb:action 
bpdfb:status EPICS bpd_feedback IOC started
(bluesky_2022_1) prjemian@zap:~/.../bdp_controls/feedback$ ./bpd_feedback.sh status
118888.bpd_feedback is running (pid=118890) in a screen session (pid=118888)
prjemian commented 2 years ago

Thanks!