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  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: streamdevice: error handling for multiple lines of input from one command
From: "Rock, Judith E." <jrock@slac.stanford.edu>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Wed, 13 Jun 2012 11:59:03 -0700
Hi -
We have a device that returns multiple lines of input from one command.  We're successfully using streamdevice to capture the inputs, which are of mixed type.  The issue at hand is error handling for the float inputs.  Upon error, any of the float fields can return an error string.  I tried setting up an @mismatch for the prototype, and this works...the problem is that the prototype stops processing inputs at the error: subsequent inputs in the list are all invalid which could mask some important conditions.  I also tried a separate prototype for each input with its own @mismatch; however I observed the same behavior: inputs following the error condition were all invalid.

Our solution at the moment is to read everything in as strings and use scalcouts to translate to numbers - that way each input is converted independently.  However, if streamdevice itself has a more elegant way of handling the situation we would be very happy to adopt it!

thanks,
Judy at SLAC


Replies:
Re: streamdevice: error handling for multiple lines of input from one command Dirk Zimoch

Navigate by Date:
Prev: Re: EPICS build on armv6l Andrew Johnson
Next: RE: thermocouple solutions PELLE Sébastien
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: how to start matlab script in MEDM Heiniger Martin
Next: Re: streamdevice: error handling for multiple lines of input from one command Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·