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

Subject: RE: Rounding in conversion of ao record
From: Mark Rivers <[email protected]>
To: haquin <[email protected]>
Cc: tech-talk <[email protected]>
Date: Thu, 21 Feb 2013 15:22:02 +0000
I don't understand why you would be seeing rounding with the asynFloat64 device support with the modbus TCP driver.  Are you talking about my asyn Modbus driver?  What version?  That should be writing the VAL field of the record with no conversion to epicsInt32.  It does not use the RVAL field.  I have tested that, and I know that others are using it.

Please explain exactly what you are seeing with the asynFloat64 device support with the Modbus driver.

Mark

________________________________________
From: haquin [[email protected]]
Sent: Thursday, February 21, 2013 8:02 AM
To: Mark Rivers
Cc: tech-talk
Subject: Re: Rounding in conversion of ao record

Hello Mark,

I discovered this using asynFloat64 device support (with modbusTCP driver), then made a specific test with Raw Soft
Channel and finally looked in the code of the ao record and in the convert function there is a cast to (epicsInt32) ...
Regards
Christophe

Le 21/02/2013 14:52, Mark Rivers a écrit :
> Conversion to epicsInt32 is not normally part of the operation of the ao record.  What device support are you using?
>
> Mark
>
> ________________________________________
> From: [email protected] [[email protected]] on behalf of haquin [[email protected]]
> Sent: Thursday, February 21, 2013 7:12 AM
> To: tech-talk
> Subject: Rounding in conversion of ao record
>
> Hi people,
>
> There is a rounding operation (cast to (epicsInt32)) when using the conversion of the ao record,
> hence, with this conversion only integer is output, no float ...
> This is surprising and not equivalent to what is done for the ai record.
>
> Could this be changed ?
>
> Regards,
> Christophe
>
>



References:
Rounding in conversion of ao record haquin
RE: Rounding in conversion of ao record Mark Rivers
Re: Rounding in conversion of ao record haquin

Navigate by Date:
Prev: Re: Rounding in conversion of ao record haquin
Next: Re: Rounding in conversion of ao record Kasemir, Kay
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Rounding in conversion of ao record haquin
Next: RE: Rounding in conversion of ao record Hu, Yong
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·