EPICS Home

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: Matt Rippa <[email protected]>
To: [email protected]
Date: Wed, 26 Apr 2006 14:38:16 -1000
Hi Ian,

I've also had good luck with using the built-in debug record for drvASCII. If it's not allready in your database just add a longout record named "debug", DTYP="Ascii SIO", and use the <debug> command prompt in your OUT field". If you don't use this already it shows the raw io serial stream as seem by drvAscii. Turn it on/off with a message button or similar to set the pv.

There's also various other debug levels you can set from the shell:
drvAsciiDebugLevel = 0
#drvAsciiDebugLevel = 64
#drvAsciiDebugLevel = 128


Hope that helps,
-Matt

Porter, Rodney R. wrote:
Ian, I have several instances similar to this, where other text makes getting the number I want almost impossible. You might try <%5k%e;%*f;%*f;%*f;%*f>, if this doesn't work (most often because there is a space in the text that can't be matched), then read the info into a stringin record and forward link to a soft ai record that gets it's VAL from the stringin record. Rodney Porter

________________________________

From: Ian A Smith [mailto:[email protected]]
Sent: Tue 4/25/2006 5:51 AM
To: [email protected]
Subject: drvAscii decode string



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?

TIA

--
Ian A Smith               Telephone: +44 (0) 131 668 8255
Royal Observatory         Fax:       +44 (0) 131 668 8314
Blackford Hill            Web:       http://www.roe.ac.uk/
Edinburgh
EH9 3HJ
UK







References:
RE: drvAscii decode string Porter, Rodney R.

Navigate by Date:
Prev: R3.14 support for MIPS (hkbaja47) Matt Rippa
Next: Problem resolving symbols during build. Walters, M (Malcolm)
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 Porter, Rodney R.
Next: StripTool bogs down host? John Dobbins
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