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  <20142015  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  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: NaN and analog records
From: Goetz Pfeiffer <[email protected]>
To: EPICS tech-talk <[email protected]>
Date: Tue, 4 Nov 2014 13:32:30 +0100
Hi Everybody,

another problem is that DRVL and DRVH seem to be ignored for NaN.

The following record;

record(ao,"UE56ID3R:BaseParGapTrs") {
    field(ASG,"USERCTL")
    field(DRVH,"0.1")
    field(DRVL,"0")
    field(LINR,"NO CONVERSION")
    field(OIF,"Full")
    field(PREC,"4")
}

for example can be set to NaN (at least for Epics Base 3.14.8).

We also found that you can type "NaN" at any entry field in DM2K which
writes NaN directly to the PV.

Greetings

  Goetz Pfeiffer

On 11/04/2014 11:21 AM, Benjamin Franksen wrote:
> Hi Everyone
>
> how do you handle a client writing NaN to an analog record (which
> probably happens by accident)? My intuition tells me that the proper
> response for the record is to go into an INVALID status, but apparently
> this is not what happens by default...
>
> The problem with accepting NaN is that subsequent tests (e.g. via calc
> or sub record) may give wrong results, perhaps leading to motors
> starting to move when they should not (it happened to us, which is the
> reason why I write this).
>
> Cheers
> Ben
> --
> "Make it so they have to reboot after every typo." ― Scott Adams
>
>
> ________________________________
>
> Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
>
> Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
>
> Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
> Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
>
> Sitz Berlin, AG Charlottenburg, 89 HRB 5583
>
> Postadresse:
> Hahn-Meitner-Platz 1
> D-14109 Berlin
>
> http://www.helmholtz-berlin.de
>


Attachment: signature.asc
Description: OpenPGP digital signature


Replies:
Re: NaN and analog records Ralph Lange
References:
NaN and analog records Benjamin Franksen

Navigate by Date:
Prev: Re: compiling issues during building cothread Adam Bark
Next: Re: NaN and analog records Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: NaN and analog records Benjamin Franksen
Next: Re: NaN and analog records Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·