EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: monitor subscription in areaDetector
From: "Pearson, Matthew R." <[email protected]>
To: "[email protected] list" <[email protected]>
Date: Fri, 27 Jan 2017 17:25:56 +0000
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  <20172018  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  <20172018  2019  2020  2021  2022  2023  2024