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
<2013>
2014
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
<2013>
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|