Most errors found with: codespell -L cach,thst,odly,aslo,parm,parms,inpu,ges,prset,pevent,ptd,pring,valu,noo,noe,ned,inout,ro,siz,froms,nd,fo,singl,sart,multy,tthe,allong,ment,inate,nodel,tring,alse,ture,thi,wille,numer Some more manually found (its -> it's) c++20: Do not use apostrophe (e.g. can't) in unquoted #error message
24 lines
1.7 KiB
Markdown
24 lines
1.7 KiB
Markdown
### New `afterIocRunning` IOC Shell Command Added
|
|
|
|
This release incorporates [PR #558](https://github.com/epics-base/epics-base/pull/558) which added a new IOC shell command `afterIocRunning`. This command allows startup scripts to schedule arbitrary commands to be executed automatically after the IOC initialization phase (`iocInit`).
|
|
|
|
`afterIocRunning` allows you to write better-structured IOC shell files to include in your startup scripts without tracking where `iocInit` is located (and how IOC is deployed) e.g.:
|
|
- to achieve the best maintainability (e.g. encapsulation of the context into one file),
|
|
- to improve writing boot sequences,
|
|
- to improve IOC startup flexibility and scripting capabilities,
|
|
- it replaces the community [`afterInit`](https://github.com/paulscherrerinstitute/iocsh_utilities/blob/master/afterInit.c) and [`doAfterIocInit`](https://github.com/epics-modules/std/blob/master/stdApp/src/delayCmd.cpp) IOC shell commands,
|
|
- community usage examples:
|
|
- [`pf4filters.iocsh`](https://github.com/epics-modules/optics/blob/master/opticsApp/iocsh/pf4filters.iocsh) - enable/disable with a single comment ([full description](https://github.com/epics-base/epics-base/pull/558#issuecomment-2430057167))
|
|
- [ALS-U autosave management](https://github.com/epics-base/epics-base/pull/558#issuecomment-2430447220)
|
|
|
|
#### Features
|
|
|
|
- Define commands that run after IOC initialization completes.
|
|
- Executes following `iocInit` and `autosave` initialization (important for proper PV configuration).
|
|
- Supports any valid IOC shell command as an argument.
|
|
- Example usages:
|
|
- `afterIocRunning "dbpf <PV> <VAL>"`
|
|
- `afterIocRunning "date"`
|
|
- `afterIocRunning "dbpf $(P)EvtClkSource-Sel 'Upstream (fanout)'"`
|
|
- `afterIocRunning "dbpf $(P)Enable-Sel Enabled"`
|