ISISComputingGroup / ISISComputingGroup/IBEX
PcasPy IOCs: implement proper heartbeat and pull out into common area
- Dominant language
- No language data
- Stars
- 6
- Forks
- 2
- Avg merge
- 16h 40m
- Merged PRs (30d)
- 2
Description
Currently the PcasPy IOCs have a `DEVIOS:HEARTBEAT` field however it defaults to 0 and doesn't change. We should pull this functionality out into a common area so that any future PcasPy IOCs can use it and have a heartbeat too, as well as avoiding implementing the functional heartbeat in (currently) 3 separate IOCs.
### Acceptance Criteria
1. Heartbeat is pulled out into a common function that can be imported and used
1. Heartbeat is implemented - for most IOCs this is seconds since it has started
Notes: we will need to pass the IOC name to the heartbeat so the function could look something like this:
```python
def start_heartbeat(ioc_name: str):
driver.createPv(PVPREFIX + "CS:IOC" + ioc_name + "DEVIOS:HEARTBEAT")
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.