ISISComputingGroup / ISISComputingGroup/IBEX

PcasPy IOCs: implement proper heartbeat and pull out into common area

Open
#5,994 1 comment 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.