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

Subject: Re: Rounding in conversion of ao record
From: "Kasemir, Kay" <[email protected]>
To: haquin <[email protected]>
Cc: tech-talk <[email protected]>
Date: Thu, 21 Feb 2013 10:22:12 -0500
On 2/21/13 10:15 , "haquin" <[email protected]> wrote:
>What I find disapointing is that the conversion forces the cast to Int32,
>for exemple, in my initial situation (asynFloat64 device support):
>- if I don't use the conversion the output is Float
>- if I use the conversion the output is Integer
>
>You never expect the conversion to prevent you from Float output.

You're correct. Conceptually, a linear conversion

 VAR = RVAL * scale + offset

could operate on floating point data. But the AI, AO records happen to use
an integer RVAL.

If you need to perform a linear (or other) conversion and stay with
floating point, you'll have to use a CALC record. Can't use the LINR
options built into the AI, AO records. Yes, that can be inconvenient. With
EPICS, you get what you pay for.

-Kay





References:
Re: Rounding in conversion of ao record haquin

Navigate by Date:
Prev: RE: Rounding in conversion of ao record Mark Rivers
Next: RE: Rounding in conversion of ao record Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Rounding in conversion of ao record haquin
Next: RE: Rounding in conversion of ao record Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·