On 10/12/20 11:54 PM, Mark Rivers via Tech-talk wrote:
However, in the process of testing it, it was found that only a single PV can be monitored
In p4p can’t you just call the monitor() method multiple times, once for each PV that you want to monitor?
In pvapy can’t you just create a Channel object for each PV, and call it’s monitor() method?
Mark
What Mark said should work.
Note that pvaPy also has methods:
subscribe,unsubscribe,startMonitor,stopMonitor.
For example
| def echo(x):
| print 'New PV value: ', x
| channel = Channel('exampleFloat')
| channel.subscribe('echo', echo)
| channel.startMonitor()
Marty
Sent from my iPhone
On Oct 12, 2020, at 10:18 PM, 秦天 via Tech-talk <tech-talk at [email protected] <tech-talk at [email protected]> wrote:
Subject: How can I use pvapy or p4p to monitor multiple PVS
From:Sky Qin<qt980319 at mail.ustc.edu.cn>
To:tech-talk at aps.anl.gov
Date:Tue,13 October 2020
Hi EPICS community, I am trying to monitor several EPICS7 PVs using pvapy or p4p. pvapy and p4p are described below:
http://epics-pvdata.sourceforge.net/docbuild/4.7.0/pvaPy/
https://mdavidsaver.github.io/p4p/
However, in the process of testing it, it was found that only a single PV can be monitored.The method of connecting to multiple PV is multiChannel,but there is only get(), no monitor method. What method can be used to monitor a large number of PV?
Best regards,
Sky Qin
下载视频
- References:
- How can I use pvapy or p4p to monitor multiple PVS 秦天 via Tech-talk <tech-talk at aps.anl.go
- Re: How can I use pvapy or p4p to monitor multiple PVS Mark Rivers via Tech-talk
- Navigate by Date:
- Prev:
CS-Studio OPI Views Vishnu Patel via Tech-talk
- Next:
EPICS timestamp in the archiver appliance Abdalla Ahmad via Tech-talk
- 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
- Navigate by Thread:
- Prev:
Re: How can I use pvapy or p4p to monitor multiple PVS Mark Rivers via Tech-talk
- Next:
Re: How can I use pvapy or p4p to monitor multiple PVS Michael Davidsaver via Tech-talk
- 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
|