Hi Lingyun,
> Is there anyway skip updating any/some of the output PVs in the aSub
routine ?
Nope sorry. At least no directly.
One slightly ugly workaround is to do the conditional in a second
record. Then use another of the aSub outputs to drive the condition.
Something like:
> record(aSub, "...") {
> ...
> field(OUTA, "other NPP")
> field(OUTB, "other.DISV PP")
> }
> record(waveform, "other") {
> field(DISA, "0")
> ...
> }
VALB!=0 of the aSub allows 'other' record is processed. VALB==0
prevents it. Note that the 'NPP' in OUTA prevents that link from
causing processing.
Michael
On 01/13/2016 05:53 PM, Lingyun Yang wrote:
> Hi,
>
> I am writing a aSub routine to do some multiinput-multioutput data
> analysis.
> In some cases, I do not want to update the output links. e.g. let those
> OUTA-OUTU PVs values untouched.
>
> If I do not do anything to the prec->vala to prec->valu, the
> corresponding PVs still get updated, but with some default values,
> e.g. 0.0 for DOUBLE.
> I also tried to set effective length (e.g. set neva=0), but it did not
> work for an ao record.
>
> Is there anyway skip updating any/some of the output PVs in the aSub
> routine ?
>
> Thanks.
>
> Best regards,
> Lingyun
>
- Replies:
- Re: Skip updating an output link in aSub ? Andrew Johnson
- Re: Skip updating an output link in aSub ? Lingyun Yang
- References:
- Skip updating an output link in aSub ? Lingyun Yang
- Navigate by Date:
- Prev:
Re: Issues with building EDM on Debian 8 32bit Michael Davidsaver
- Next:
Re: VxWorks 6.9 Stefen Paul
- 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:
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
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
|