https://github.com/pklaus/assert_epics_value_updates
https://github.com/pklaus/assert_epics_value_updates
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pklaus/assert_epics_value_updates
- Owner: pklaus
- Created: 2019-08-26T07:50:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-08-26T07:51:03.000Z (over 5 years ago)
- Last Synced: 2024-12-28T15:49:15.418Z (5 months ago)
- Language: Python
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Assert EPICS value updates
==========================A Python service that connects to EPICS process variables
and watches them for changing values. If the value
doesn't fluctuate for a configurable number of samples,
an external script is executed.The need for this script came up as the readout of a
certain detector can get stuck. In that case, the number
of data words in each frame wouldn't change anymore and
the readout could be restarted by the external script.CLI signature:
```
usage: assert_epics_value_updates.py [-h] [--pv PV] [--script SCRIPT]
[--tolerance TOLERANCE]optional arguments:
-h, --help show this help message and exit
--pv PV PV to monitor (can be used multiple times).
--script SCRIPT Script to run if the PVs don't update anymore.
--tolerance TOLERANCE
Number of times we tolerate non-changing values
```An example calling the service:
```
./assert_epics_value_updates.py \
--pv CBM:MVD:TRB:Mvd-0xd010-DataLength.0 \
--pv CBM:MVD:TRB:Mvd-0xd010-DataLength.1 \
--pv CBM:MVD:TRB:Mvd-0xd011-DataLength.0 \
--pv CBM:MVD:TRB:Mvd-0xd011-DataLength.1 \
--script ./restart_readout.sh
```