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: the command formats in RS232 |
From: | "Porter, Rodney R." <[email protected]> |
To: | "Lifang Zheng" <[email protected]> |
Cc: | "EPICS tech-talk" <[email protected]> |
Date: | Thu, 10 Jul 2003 09:45:41 -0500 |
I had a similar problem with exponential inputs and read the value into a drvAsciii stringin record linked to a soft analog input record. For the output problem (all of the devices we have tried so far just ignore extra zeros) you could use a soft analog output record linked to an sCalcout Record (String Calcout Record) or a genSub Record to format the string, linked to a drvAscii stringOut Record.
Rodney Porter Scientific Associate - Data Acquisition Intense Pulsed Neutron Source Division Argonne National Laboratory -----Original Message-----
Hi everyone,
We are developing 100MeV LINAC vacuum control system through RS232 serial. The hardware has a VIPC616 carrier and an IP-Octal-232. The software includes drvSerial,drvAscii,drvIpac,drvVipc616, tyGSOctal and devAscii. The first test was successfully with the help of Allan Honey and Steven Hartman a few month ago.
But we have one problem. Some of the commands use the format d.ddde-dd, but the OUT field of AO have to be specified as %e instead of %9.3e or %.3e. So the value of AO will be sent as d.ddd000e-dd which doesn't meet our requirement. Does somebody meet the same problem? Is there any solution?
Any suggestion is welcome,
Lifang |