EPICS Controls 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  2011  2012  2013  2014  2015  <20162017  2018  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Skip updating an output link in aSub ?
From: Andrew Johnson <[email protected]>
To: Lingyun Yang <[email protected]>, <[email protected]>
Cc: [email protected]
Date: Thu, 14 Jan 2016 11:07:06 -0600
On 01/14/2016 10:59 AM, Lingyun Yang wrote:
> Thank you all for the help.
> 
> Unfortunately this aSub is outputing both "calculation" and "action". So
> I want to forward the "calculations"  but inhibit the actions.
> This all/none solutions does not work for me.

As long as your subroutine subsequently returns a non-zero value, you
can control which links get output yourself by calling dbPutLink()
yourself as desired. Take a look in the src/rec/aSubRecord.c file at the
process() routine, where you'll find this code:

>     /* Push the output link values */
>     if (!status) {
>         int i;
> 
>         for (i = 0; i < NUM_ARGS; i++)
>             dbPutLink(&(&prec->outa)[i], (&prec->ftva)[i], (&prec->vala)[i],
>                 (&prec->neva)[i]);
>     }

You just need to do exactly what the record does for each of the links
that you want to send out. This will probably be *much* easier than
using Kay's calcout suggestion.

- Andrew

-- 
There are only two hard problems in distributed systems:
  2. Exactly-once delivery
  1. Guaranteed order of messages
  2. Exactly-once delivery
 -- Mathias Verraes

References:
Skip updating an output link in aSub ? Lingyun Yang
Re: Skip updating an output link in aSub ? Michael Davidsaver
Re: Skip updating an output link in aSub ? Andrew Johnson
Re: Skip updating an output link in aSub ? Lingyun Yang

Navigate by Date:
Prev: Re: Skip updating an output link in aSub ? Lingyun Yang
Next: Re: Skip updating an output link in aSub ? Roehrig, Christian
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Skip updating an output link in aSub ? Lingyun Yang
Next: Re: Skip updating an output link in aSub ? Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·