Hi Kuktae,
Try the example below:
[ernesto@sdfiana006 scripts (⎈|N/A:N/A)]$ python -m p4p.client.cli
usage: cli.py [-h] [-r REQUEST] [-w TIMEOUT] [-p PROVIDER] [-d] [-v] [--raw] {get,put,monitor,rpc} ...positional arguments:
{get,put,monitor,rpc}options:
-h, --help show this help message and exit
-r REQUEST, --request REQUEST
-w TIMEOUT, --timeout TIMEOUT
-p PROVIDER, --provider PROVIDER
-d, --debug
-v, --verbose
--raw
[ernesto@sdfiana006 scripts (⎈|N/A:N/A)]$
[ernesto@sdfiana006 scripts (⎈|N/A:N/A)]$ python -m p4p.client.cli
-p ca get QUAD:IN20:361:BCTRL
QUAD:IN20:361:BCTRL Tue Jan 21 15:54:03 2025 -3.8797721970048187
[ernesto@sdfiana006 scripts (⎈|N/A:N/A)]$
Cheers,
Ernest
From: Kim, Kuktae <ktkim at slac.stanford.edu>
Sent: Thursday, January 23, 2025 8:00 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Cc: Williams Jr., Ernest L. <ernesto at slac.stanford.edu>; Bellister, ,Jesse <jesseb at slac.stanford.edu>; Zelazny, Michael Stanley <zelazny at slac.stanford.edu>
Subject: Does P4P Support Channel Access (CA) with a Provider Flag?
Hello everyone,
I have a question about P4P and its support for Channel Access (CA) with a provider flag. The pvget command includes an option to select the provider, with 'pva' being the default.
Here’s an example:
$ caget IOC:IN20:EV01:IOC_CPU_LOAD
IOC:IN20:EV01:IOC_CPU_LOAD 9.82578
$ pvget IOC:IN20:EV01:IOC_CPU_LOAD
Timeout
$ pvget -p ca IOC:IN20:EV01:IOC_CPU_LOAD
IOC:IN20:EV01:IOC_CPU_LOAD 10.2621
I want to implement something similar using P4P, but I haven’t been able to find a way to do so. Could someone clarify this for me? Thank you for your help!
Best regards,
Kuktae
|