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: "Roehrig, Christian" <[email protected]>
To: Lingyun Yang <[email protected]>, "Johnson, Andrew N." <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 14 Jan 2016 17:10:01 +0000
Hi Lingyun,

    I had the same problem.  I used a sequence record as an intermediary to write the values from the aSub record and I used one of the outputs from the aSub record to write to the sequence record’s mask so that I could easily change which links in the sequence record were processed based on the aSub inputs.

Chris Roehrig

From: <[email protected]> on behalf of Lingyun Yang <[email protected]>
Date: Thursday, January 14, 2016 at 10:59 AM
To: Andrew Johnson <[email protected]>, "[email protected]" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: Skip updating an output link in aSub ?

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.

Using calcout as Kay said should work. Although I need to write hundreds of them after splitting a waveform to individual PV,  It seems have some flexibility.


Lingyun
 

On Thu, Jan 14, 2016 at 11:21 AM, Andrew Johnson <[email protected]> wrote:
On 01/13/2016 09:43 PM, Michael Davidsaver wrote:
>> Is there anyway skip updating any/some of the output PVs in the aSub
> routine ?
>
> Nope sorry.  At least no directly.

Wrong; as John Priller pointed out (the Wiki documentation indirectly
explains this, but isn't terribly clear about it) returning a non-zero
value from the subroutine tells the record not to put the output links.
The aSub record sometimes does things a bit differently than the other
record types...

- 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



--
------------------
Lingyun YANG
Skype Name: lingyun_zjdt

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 ? Andrew Johnson
Next: RE: CARS Web site Mark Rivers
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 ? Andrew Johnson
Next: Re: Skip updating an output link in aSub ? Lingyun Yang
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 ·