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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Rounding in conversion of ao record |
From: | haquin <[email protected]> |
To: | Mark Rivers <[email protected]> |
Cc: | tech-talk <[email protected]> |
Date: | Thu, 21 Feb 2013 15:02:35 +0100 |
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
begin:vcard fn:Christophe Haquin n:Haquin;Christophe email;internet:[email protected] tel;work:02 31 45 46 61 x-mozilla-html:FALSE version:2.1 end:vcard