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  2015  2016  <2017 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
<== Date ==> <== Thread ==>

Subject: StreamDevice CRC parsing Leybold Graphix
From: Daniel Schick <Daniel.Schick@mbi-berlin.de>
To: tech-talk@aps.anl.gov
Date: Mon, 27 Nov 2017 14:26:06 +0100
Dear all,

I am trying to implement a StreamDevice driver for a Leybold Graphix Three vacuum gauge controller.
With the help of Pete Owens I got the basics running very quickly, but now I am stuck with parsing string outputs from the controller.

The message structure for receiving data is:

[ACK] Value CRC [EOT]

which is implemented in my protocol file as follows:


get_string {
 out SI "\$1;\$2 %<notsum>" ;
 in ACK "%s%0.1<notsum>" ;
}

When I receive a string response I get the following error:

 Input "" does not match format "%0.1<notsum>"

and the CRC is not recognized but added to the string output.

Is it in general possible to parse this message format without knowing the response string length in advance?

Best

Daniel 
____________________

Dr. Daniel Schick

Max-Born-Institute
for nonlinear optics
and short pulse spectroscopy
im Forschungsverbund Berlin e.V.

Max-Born-Str. 2a
12489 Berlin, Germany
Room: House B, 3.3
Tel.: +49 30 6392 1311

Navigate by Date:
Prev: Driver for the SM300 john.holt
Next: Driver for the SM300 john.holt
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
Navigate by Thread:
Prev: Driver for the SM300 john.holt
Next: EDM Hoff Video Widget and Bits Per Pixel Hugo Slepicka
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
ANJ, 28 Nov 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·