Skip to main content

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

p2plant_ioc-1.0.1.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

p2plant_ioc-1.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file p2plant_ioc-1.0.1.tar.gz.

File metadata

  • Download URL: p2plant_ioc-1.0.1.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for p2plant_ioc-1.0.1.tar.gz
Algorithm Hash digest
SHA256 61d8e672a70888aedebb42c6465cc3f69775d6842b277d8da07966a40be84133
MD5 ec234bcde62ce05d0c1c64c513b3c205
BLAKE2b-256 ed403a9b2a0330f9f436d4db0e74762e5f5bab5c6846648d67b2e71557076827

See more details on using hashes here.

File details

Details for the file p2plant_ioc-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: p2plant_ioc-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for p2plant_ioc-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fb0c226f1ccc8600e85b24093e8a33fc5e3ba241ca5e808791477b1c8d696498
MD5 3fc036d8dc6357e0d90d89c774db8f11
BLAKE2b-256 64e3833201273915127a6aea432366a48f149957277a4d00deb875e72edca7cf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page