1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 <2025> | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 <2025> |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Does P4P Support Channel Access (CA) with a Provider Flag? |
From: | "Williams Jr., Ernest L. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Kim, Kuktae" <ktkim at slac.stanford.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Thu, 23 Jan 2025 16:42:07 +0000 |
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
|