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 & variable length data
From: "Konrad, Martin" <konrad@frib.msu.edu>
To: EPICS Tech Talk <tech-talk@aps.anl.gov>
Date: Fri, 17 Mar 2017 09:31:32 -0400
Hi,
I have a device that comes with a command that reads an event log like so:

-> GET ERRORS
<- BEGIN ERRORS
<- 2017-03-16 17:37:52 Cooling Water Flow Error VALUE 1.9
<- 2017-03-16 17:38:13 Sensor 1 Over-Temp Error VALUE 36.7
<- 2017-03-16 17:38:24 Sensor 2 Over-Temp Error VALUE 40.2
<- END ERRORS

Note that the number of lines between the begin and end markers can
vary. There is another command for clearing the event log.

Is there any chance I can read this into either
a) a waveform of strings or
b) one huge waveform of chars?

I'm also open to suggestions on how to improve the protocol. Should I
try to convince the vendor to replace the error log by a command for
reading out the status of all error flags? I could then easily push them
into individual PVs. That would make archiving etc. easier.

Thanks,

Martin

-- 
Martin Konrad
Control System Engineer
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: konrad@frib.msu.edu

Replies:
Re: Streamdevice & variable length data Dirk Zimoch

Navigate by Date:
Prev: Re: Asyn 4-30 Problem on Arm processor Konrad, Martin
Next: AreaDetector / ADURL queries Heesterman, Peter J
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: Re: Asyn 4-30 Problem on Arm processor Jörn Dreyer
Next: Re: Streamdevice & variable length data Dirk Zimoch
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, 20 Mar 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·