Some additional discussion.
Currently the adjustment conversion (using ASLO & AOFF) is intermixed
with the linear conversion (using ESLO & ROFF), as described in the
record reference manual, eg for aiRecord:
> 1. val = RVAL + ROFF
>
> 2. val = val * ASLO + AOFF
>
>If the conversion algorithm is LINEAR, the raw value is converted via the >equation:
>
> 3. VAL = val * ESLO + EGUL
If ROFF is not zero I find it difficult to guess what the result will
be.
IMO it is more useful to separate these steps, i.e. first do linear
conversion
val = (RVAL + ROFF) * ESLO + EGUL
and then do adjustment
VAL = val * ASLO + AOFF
(Similar, ie the other way around, with ao record). This means that
ASLO/AOFF adjustment operates on engeneering unit values and _not_ on
raw values, which is IMO the only thing that makes sense: The raw values
should be hidden behind record and device support and not concern the
application db designer (ASLO & AOFF are DCT settable).
Anyway, there is a problem: This changes semantics. Applications that
use a device support that sets ROFF (to sth. other than zero) and also
use ASLO/AOFF themselves are no longer working correctly with the new
version. Is this acceptable?
Ben
--
The Notorious Neb Nesknarf
-----------------------------------------------------------------------
BESSY II
Berliner Elektronenspeicherring- phone: +49(30)6392-4865
Gesellschaft fuer Synchrotronstrahlung fax: +49(30)6392-4859
Rudower Chaussee 5 email: [email protected]
D-12489 Berlin web: http://www.bessy.de/~franksen
-----------------------------------------------------------------------
HOME: Benjamin Franksen, Fichtestr. 19a, D-10967 Berlin, +49(30)6913756
-----------------------------------------------------------------------
- References:
- Proposed changes in ai & ao records Benjamin Franksen
- Navigate by Date:
- Prev:
Re: VME-GPIB 1014 problems (beginner questions) Bill Brown
- Next:
A Problem Initializing drvGpib with the NI-1014 Module J. Frederick Bartlett ([email protected])
- 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:
Proposed changes in ai & ao records Benjamin Franksen
- Next:
A Problem Initializing drvGpib with the NI-1014 Module J. Frederick Bartlett ([email protected])
- 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
|