https://github.com/asukhanov/p2plant_ioc
Bridge to access P2Plant-based devices from EPICS PVAccess ecosystem.
https://github.com/asukhanov/p2plant_ioc
epics p4p point-to-point pvaccess
Last synced: 5 months ago
JSON representation
Bridge to access P2Plant-based devices from EPICS PVAccess ecosystem.
- Host: GitHub
- URL: https://github.com/asukhanov/p2plant_ioc
- Owner: ASukhanov
- License: mit
- Created: 2025-02-14T01:02:35.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-04-06T14:40:43.000Z (6 months ago)
- Last Synced: 2025-05-15T22:14:24.353Z (5 months ago)
- Topics: epics, p4p, point-to-point, pvaccess
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EPICS softIocPVA for P2Plant devices
# Example
Start P2Plant of simulated 8-channel ADC as described in [P2Plant](https://github.com/ASukhanov/P2Plant).Run softIocPVA:
```
python -m p2plant_ioc -l -k
```
The P2Plant should start streaming data:
```
ADC:rps=10 reqs:81, trig:69021 client:1, DBG:0
...
```
Open another terminal to control P2Plant.
Change debugging level of the P2Plant:
```
python -m p4p.client.cli put p2p:debug=1
# disable debugging:
python -m p4p.client.cli put p2p:debug=0
```
Change streaming rate of the P2Plant to 1000 Hz (sleep time = 1 ms):
```
python -m p4p.client.cli put p2p:sleep=1
```
The P2Plot should indicate the rps (rounds per seconds) change to ~920.
Monitor ADC channel 0:
```
python -m p4p.client.cli monitor p2p:adc0
p2p:adc0 Sun Mar 9 11:29:44 2025 ntnumericarray([457, 458, 459, ..., 454, 455, 456], dtype=uint16)
```
Plot ADC0 samples using pvplot:
```
python -m pvplot V:p2p:adc0
```