EPICS Home

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  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: How to corretly read the INP field?
From: Emmanuel Mayssat <[email protected]>
To: epics <[email protected]>
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  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
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  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024