Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: RE: ca subscriptions, invalid pv
From: "Allison, Stephanie" <saa@slac.stanford.edu>
To: "pthomas@ligo-wa.caltech.edu" <pthomas@ligo-wa.caltech.edu>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 2 Mar 2011 16:01:44 -0800
Hi Patrick,

> 2. How do you usually deal with setting a pv invalid if the data is being
> put to it from an external program (ie, not device support) and that
> program fails?

We ask that the other program also write to a heartbeat PV on a periodic basis (ie, 1 sec to 10 sec).  Then logic is added to check the heartbeat and a status PV is updated when it starts/stops.  Currently, we do NOT set the data PVs to invalid but this could be done based on the status PV since the status PV goes to an INVALID state when the heartbeat stops.  And the ye-olde SDIS kluge can be used to force processing/maximize severity of the data PVs - see this tech-talk message:

http://www.aps.anl.gov/epics/tech-talk/2009/msg00691.php

Stephanie Allison

> -----Original Message-----
> From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf
> Of pthomas@ligo-wa.caltech.edu
> Sent: Wednesday, March 02, 2011 2:45 PM
> To: tech-talk@aps.anl.gov
> Subject: ca subscriptions, invalid pv
> 
> Hi,
> 
> Two questions:
> 
> 1. If a channel is connected or reconnects, and a call to
> ca_create_subscription succeeds or has previously succeeded, is there
> anything else that could go wrong on the ioc side that might cause the
> channel not to be monitored (other than the channel disconnecting)? And if
> so, is there a way to tell from the client side? Do I have to wait for the
> event handler to be called before I can trust that everything is working?
> 
> 2. How do you usually deal with setting a pv invalid if the data is being
> put to it from an external program (ie, not device support) and that
> program fails? Do you write device support for the ioc hosting the pv, and
> use it to get the value and a status update from the program? Is there a
> more preferred method?
> 
> Thank you,
> Patrick


References:
ca subscriptions, invalid pv pthomas

Navigate by Date:
Prev: Re: ca subscriptions, invalid pv Andrew Johnson
Next: Re: ca subscriptions, invalid pv pthomas
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: RE: ca subscriptions, invalid pv Jeff Hill
Next: RE: ca subscriptions, invalid pv Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·