EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: drvAscii decode string
From: Maren Purves <[email protected]>
To: [email protected]
Date: Tue, 25 Apr 2006 08:19:04 -1000
Tim Mooney wrote:
Ian A Smith wrote:

I'm trying to read the following into an ascii analogin record:

"=V913 1.13e-04;59;11;0;0"

and to extract the 1.13e-04 or whatever. Using <%5k%f> just times out and so does <=V913%f>. Using %e makes no difference. If I read the value into a stringin record, there is no problem apart from the fact that it's a string.

Any suggestions?

If you don't find a format string that will work, you could just grab the
whole string and parse it with an sCalcout record, using the above format.
(See http://www.aps.anl.gov/aod/bcda/synApps/calc/R2-4/sCalcoutRecord.html.)


or use a genSub - which is what I tend to do in cases where you need
only a part of the string, or split a string into more than one part.

Aloha,

Maren


References:
drvAscii decode string Ian A Smith
Re: drvAscii decode string Tim Mooney

Navigate by Date:
Prev: RE: No more CA connections on different IOC Jeff Hill
Next: Re: StripTool bogs down host? Craig Walther
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: drvAscii decode string Tim Mooney
Next: Re: drvAscii decode string Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·