>>> On 12/4/2003 at 16:30:38 CST, Mark Rivers wrote:
> 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.
One work-around for this (which is used by devAscii, for instance) is to
scale the value read from the device up in the device support so that it
can be represented as an integer while maintaining useful precision, and
then to scale it back down in the conversion to your desired units.
- brian
- References:
- RE: aiRecord, RVAL vs. VAL Mark Rivers
- Navigate by Date:
- Prev:
RE: aiRecord, RVAL vs. VAL Mark Rivers
- Next:
Re: aiRecord, RVAL vs. VAL Allan Honey
- 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 Mark Rivers
- Next:
Re: aiRecord, RVAL vs. VAL Allan Honey
- 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
|