g+
g+ Communities
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  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: How to corretly read the INP field?
From: Emmanuel Mayssat <emayssat@yahoo.com>
To: epics <tech-talk@aps.anl.gov>
Date: Wed, 7 Mar 2012 16:50:05 -0800 (PST)
Hello,

For a few of my soft records, I used to read the INP field directly with a command like

[driver code]

myStatus=sscanf(psi->inp.value.instio.string, "@lm=%d df=%[^\n]",
                  &myLogMark, p_myDateFormat);

[/driver code]

It turns out this method doesn't work correctly anymore.
Indeed the psi->inp.value.instio.string is truncated at the first 'space' char.
In my case, that means, it cannot scanf the 'df= ...'
I also noticed that I now have to include the '@' char, when before I didn't have to.
That change appeared between 3.14.8 and 3.14.11

What is the correct way to read the INP field now?

--
Emmanuel

Replies:
Re: How to corretly read the INP field? Dirk Zimoch

Navigate by Date:
Prev: COV service for EPICS BACnet-driver is ready. Webb, Steven B.
Next: What's the status of EPICS on RTEMS? Feng Laurence
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: COV service for EPICS BACnet-driver is ready. Webb, Steven B.
Next: Re: How to corretly read the INP field? Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·