> But this question still remains:
>
> Amy Baum wrote:
> >>
> >> Why is RVAL only an int type if it is intended to hold the
> >> raw data from hardware?
It is intended for devices like A/D converters that typically return 12,
14 or 16 bit integers of "RAW" values. These values can be converted to
engineering units by the ai record if the appropriate conversion is
requested.
I agree that having the RAW field be an integer is a limitation. For
example, I might want to read a voltage from a digital multimeter, which
returns a floating point number, but then have that number converted to
some other units, for example pressure, by the ai record conversion
routine. As it stands I think device support would have to do that
conversion directly, it could not write into the RVAL field and ask the
record to do the conversion.
Mark
- Replies:
- Re: aiRecord, RVAL vs. VAL Brian McAllister
- Navigate by Date:
- Prev:
Re: aiRecord, RVAL vs. VAL Amy Baum
- Next:
Re: aiRecord, RVAL vs. VAL Brian McAllister
- 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: aiRecord, RVAL vs. VAL Amy Baum
- Next:
Re: aiRecord, RVAL vs. VAL Brian McAllister
- 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
|