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  2016  2017  2018  2019  2020  <20212022  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  2016  2017  2018  2019  2020  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Yet another calc record / CPP link problem
From: Ben Franksen via Tech-talk <tech-talk at aps.anl.gov>
To: Michael Davidsaver <mdavidsaver at gmail.com>
Cc: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Tue, 16 Feb 2021 20:12:17 +0100
Am 16.02.21 um 17:53 schrieb Ben Franksen via Tech-talk:
> Am 16.02.21 um 17:10 schrieb Michael Davidsaver:
>> The use of "VAL" here confuses me, but I wonder "A&B&C&D=A|B|C|D"
>> should be "(A&B&C&D)=(A|B|C|D)"?
> 
> OMG, you are saying that this was a stupid operator precedence error? I
> will check that. (I had dismissed the idea that the CALC expression may
> be wrong since it works for weeks on end before failing.)

Embarrasing. That was the problem.

And the reason it did not lead to an error except if the timing is very
unusual is this: the input records are always processed in order, the
one connected to A first, then B, etc. If everything works correctly,
all inputs change to the same value in very rapid succession.
Incidentally, my broken CALC expression has the correct value after all
inputs change /in that order/. If the order gets messed up due to timing
glitches (these are CPP links), the result can be wrong though. In
particular, from A=B=C=D=VAL=1 one can set B=0,C=0,D=0,A=0 and all the
time VAL remains at 1.

Cheers & Thanks Michael!
Ben
-- 
I would rather have questions that cannot be answered, than answers that
cannot be questioned.  -- Richard Feynman


Attachment: signature.asc
Description: OpenPGP digital signature


References:
Yet another calc record / CPP link problem Ben Franksen via Tech-talk
Re: Yet another calc record / CPP link problem Michael Davidsaver via Tech-talk
Re: Yet another calc record / CPP link problem Ben Franksen via Tech-talk

Navigate by Date:
Prev: Re: EPICS latest stable version Ralph Lange via Tech-talk
Next: Re: pmacAsynCoord in-position vs .MOVN Kevin Peterson via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: Yet another calc record / CPP link problem Ben Franksen via Tech-talk
Next: EPICS latest stable version Delahaye Olivier via Tech-talk
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  <20212022  2023  2024 
ANJ, 16 Feb 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·