Skip to content

Bridge to access P2Plant-based devices from EPICS PVAccess ecosystem.

License

Notifications You must be signed in to change notification settings

ASukhanov/p2plant_ioc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

EPICS softIocPVA for P2Plant devices

Example

Start P2Plant of simulated 8-channel ADC as described in 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

About

Bridge to access P2Plant-based devices from EPICS PVAccess ecosystem.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages