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  2012  2013  2014  2015  <20162017  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  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: stream protocol question: ASCII hex to 32-bit float
From: Kevin Peterson <[email protected]>
To: Eric Norum <[email protected]>
Cc: EPICS tech talk <[email protected]>
Date: Fri, 11 Mar 2016 15:05:55 -0600
Thanks.  This calc works and will be good enough for the initial testing
of the sensor.

Kevin

On 3/10/16 11:03 AM, Eric Norum wrote:
> If you don’t need to worry about NaNs or Infinities I think that this
> calc record will do what you need:
> 
> record(calc, "floatMap") {
>     field(A, "0x3F800000")
>     field(CALC,
> "B:=A?((A&0x7FFFFF)+0x800000)*2**(((A>>23)&255)-150):0;A&0x80000000?-B:B")
> }
> 
> 


References:
stream protocol question: ASCII hex to 32-bit float Kevin Peterson
Re: stream protocol question: ASCII hex to 32-bit float Eric Norum

Navigate by Date:
Prev: RE: mrfioc2 error at uTCA platform 김지화(빔라인장치팀)
Next: Re: stream protocol question: ASCII hex to 32-bit float Kevin Peterson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: stream protocol question: ASCII hex to 32-bit float Eric Norum
Next: appropriate version of sequnecer jun-ichi.odagiri
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 15 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·