Experimental Physics and Industrial Control System
Hi,
In areaDetector, for when we append NDAttribute data to NDArray objects, we have a class that can set up monitors on PVs. When a monitor event happens we record the data for use by the next NDArray object. However, we were setting a monitor callback handler for every connection event. This can result in multiple monitors being setup if the IOC that hosts the PV being monitored has been restarted a few times (resulting in a multiple connection events in the areaDetector IOC).
I was able to fix this in the same was as camonitor.c handles this, by using a flag to indicate that we’ve already connected (and set up a monitor) to a PV. Is this the most appropriate method to handle this? In the CA reference manual I see that there are functions like ca_clear_channel() and ca_clear_subscription() that we could possibly use on a disconnection event.
Cheers,
Matt
Data Acquisition and Control Engineer
Spallation Neutron Source
Oak Ridge National Lab
- Replies:
- Re: monitor subscription in areaDetector Kasemir, Kay
- Re: monitor subscription in areaDetector Andrew Johnson
- Navigate by Date:
- Prev:
RE: problem connecting serial device with moxa 5150A Mark Rivers
- Next:
Re: monitor subscription in areaDetector Kasemir, Kay
- 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: Questions about set parameters to device by using epics Mark Rivers
- Next:
Re: monitor subscription in areaDetector Kasemir, Kay
- 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