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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: sCalcout - again
From: "J. Lewis Muir" <[email protected]>
To: Pierrick Hanlet <[email protected]>, EPICS Tech-Talk <[email protected]>
Date: Mon, 23 Aug 2010 09:47:02 -0500
On 8/23/10 9:24 AM, Pierrick Hanlet wrote:
> 
> Hi Kurt,
> I'm still having trouble with my db.  This is actually what I have.  The problem
> appears to be in the definition of INAA, INBB, INCC.  When I do a caget or
> camonitor of  MICE-ENV-AC-LEAK-04:calStatus.AA, I find that I have no value
> stored there.  I do see the fields INAA, etc, defined in the dbd file.
> 
> The calculation works correctly, as I get the expected 1,0,-1 if I use the
> uncommented CALC line.
> 
> record(scalcout,"MICE-ENV-AC-LEAK-04:calStatus") {
>         field(DESC,"Water leak status determination")
>         field(SCAN,"10 second")
>         field(INPA,"MICE-ENV-SECPRB-01:WaterLeakStatus4")
>         field(INPB,"MICE-ENV-SECPRB-01:WaterLeakValue4")
>         field(INAA,"Dry")
>         field(INBB,"Leak detected")
>         field(INCC,"Error")
> #       field(CALC,"(A=2||A=4)&&B=0?AA:(A=2||A=4)&&B=BB?1:CC")
>         field(CALC,"(A=2||A=4)&&B=0?0:(A=2||A=4)&&B=1?1:-1")
>         field(SVAL,"MICE-ENV-AC-LEAK-04:Status")
>         field(FLNK,"MICE-ENV-AC-LEAK-04:Status.PROC")
> }
> #record(stringout,"MICE-ENV-AC-LEAK-04:Status") {
> record(ao,"MICE-ENV-AC-LEAK-04:Status") {
>         field(DESC,"AC unit water drip status")
>         field(SCAN,"Passive")
>         field(FLNK,"MICE-ENV-AC-LEAK-01:foStatus.PROC")
> }
> 
> Any ideas?  Thanks,

Hi, Pierrick.

You should change those INAA, INBB, and INCC fields, to just AA, BB, and
CC since they're just string values, not actual input links.

Also note that you will need the sCalcout record from calc 2-8 or newer
since there was a bug in calc 2-7 that would destroy a value in the BB,
CC, etc. fields in certain cases.

Lewis

References:
sCalcout Pierrick Hanlet
Re: sCalcout Kurt Goetze
Re: sCalcout - again Pierrick Hanlet

Navigate by Date:
Prev: Re: sCalcout - again Kurt Goetze
Next: RE: CA gateway dies without error message Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: sCalcout - again Kurt Goetze
Next: RE: sCalcout - again peter.owens
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·