> From: Phillip Sorensen [mailto:[email protected]]
>
> I am trying to get a device working with StreamDevice 2-1. My device
> returns a message in the form of "OK:value,checksum". The checksum is
> only for the value part of the message. I am able to skip the "OK:" by
> using the width field, but trying to use the precision field to skip the
> "," between the value and checksum gives an error about not being able
> to use the precision field.
>
> Is there a way to tell the parser to skip the ","?
According to the docs, this should be achievable as you suggest, using:
in "OK:%f,%3.1<xor>"
or whatever value and checksum conversion type you need.
I've looked at the code and can't see why a precision wouldn't work.
What is the error message, exactly?
Have you tried setting streamDebug to 1 (you should be able to do this from the console without rebuilding) and seeing if the copious debugging output helps you to see what's going on?
--
Peter Denison, Senior Software Engineer
Diamond Light Source Ltd., Diamond House, Chilton Didcot, Oxon, OX11 0DE
+44 1235 778511
- Replies:
- RE: StreamDevice and checksum Phillip A. Sorensen
- References:
- RE: StreamDevice and checksum Owens, PH (Peter)
- Navigate by Date:
- Prev:
Re: unexpanded macros in comments Andrew Johnson
- Next:
AAI and AAO Record support David Dudley
- 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: StreamDevice and checksum Owens, PH (Peter)
- Next:
RE: StreamDevice and checksum Phillip A. Sorensen
- 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
|