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
>
- Replies:
- Re: StreaDevice formating problem Jörn Wüstenfeld
- References:
- StreaDevice formating problem Jörn Wüstenfeld
- Navigate by Date:
- Prev:
Re: StreaDevice formating problem Dirk Zimoch
- Next:
Analog output record (softChannel): How to easily prevent VAL field's clipping within limits Heinz Junkes
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: StreaDevice formating problem Dirk Zimoch
- Next:
Re: StreaDevice formating problem Jörn Wüstenfeld
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
<2015>
2016
2017
2018
2019
2020
2021
2022
2023
2024
|