EPICS Controls 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  2012  2013  2014  <20152016  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  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: StreaDevice formating problem
From: Jörn Wüstenfeld <[email protected]>
To: "Jennings, Guy" <[email protected]>
Cc: Tech Talk <[email protected]>
Date: Thu, 09 Apr 2015 09:19:02 +0200
After changing from %i to %d it works! I was not aware of this slight 
difference in the format converters.

Thanks for the help!

Am Mittwoch, 8. April 2015, 15:48:55 schrieb Jennings, Guy:
> According to man sscanf, %d might work - it matches a decimal integer -
> whereas %i matches decimal, octal or hexadecimal.
> 
> > On Apr 8, 2015, at 5:30 AM, Jörn Wüstenfeld <[email protected]> wrote:
> > 
> > Hello,
> > 
> > I have a problem with a device, which returns a value with a fixed length
> > of 3 characters, left padded with zero. If the value is below 100, it is
> > interpreted as an octal value by StreamDevice if I use %i as format. Of
> > course I can use %s and a stringin record, but then I do not have the EGU
> > fioeld available for displaying.
> > Is there a way to handle this in StreamDevice? Or is my only chance to
> > write my own asyn driver for this device?
> > 
> > Regards
> > Jörn Wüstenfeld




References:
StreaDevice formating problem Jörn Wüstenfeld
Re: StreaDevice formating problem Jennings, Guy

Navigate by Date:
Prev: Re: Analog output record (softChannel): How to easily prevent VAL field's clipping within limits Andrew Johnson
Next: Re: Stream device problem with redirection in @mismatch ruzickaj
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: StreaDevice formating problem Jennings, Guy
Next: CSS Boy and Signed/Unsigned Int Issue ian.bush
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·