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  <20122013  2014  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  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: aiRecord conversion
From: Ralph Lange <[email protected]>
To: [email protected]
Date: Tue, 28 Aug 2012 15:50:16 +0200
On Tue Aug 28 2012 15:28:34 GMT+0200 (CEST), Bruno Seiva Martins <[email protected]> wrote:
Rectifying:

   epicsFloat64 div;

   pao->eguf = 10.0;
   pao->egul = (type == LCN12BMP || type == LCN16BMP) ? 0.0 : -10.0;
   div = (type == LCN12BMP || type == LCN12BBP) ? 4095.0 : 65535.0;
   pao->hopr = pao->eguf; 
   pao->lopr = pao->egul; 
   pao->eslo = ((pao->eguf) - (pao->egul)) / div;


Bruno Seiva Martins

Your device support has to set ESLO and EOFF. You left out the latter.

~Ralph

References:
aiRecord conversion Bruno Seiva Martins
Re: aiRecord conversion Dirk Zimoch
Re: aiRecord conversion Bruno Seiva Martins
Re: aiRecord conversion Bruno Seiva Martins

Navigate by Date:
Prev: Re: aiRecord conversion Eric Norum
Next: Re: aiRecord conversion Bruno Seiva Martins
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: aiRecord conversion Bruno Seiva Martins
Next: Re: aiRecord conversion Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·