EPICS Controls 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  2018  2019  2020  <20212022  2023  2024  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  <20212022  2023  2024 
<== Date ==> <== Thread ==>

Subject: StreamDevice protocol file question
From: "Wang, Andrew via Tech-talk" <tech-talk at aps.anl.gov>
To: EPICS tech-talk <tech-talk at aps.anl.gov>
Date: Fri, 30 Jul 2021 14:22:07 +0000
All,

Quick question about the protocol file in StreamDevice. Suppose I have an instrument where after I send a command to change one of its attributes, it responds back with a status of either  OK or BAD. Furthermore, I have an analog output record, whose value is used by a protocol file. 

If I want to properly flush the status response, what is the preferred method of doing so, especially since the status response is a string, not a scaler value.

What I’m currently doing in the protocol is this:

setProp
{
       out “set %f”;
       in “”;
}

What is weird is that I am not getting a mismatch error, and it does seem like I am properly flushing the input with that method.

After looking at other code, Is it better to do this?

setProp
{
       out “set %f”;
       in “%*s”; # or this “%*f”;
}

Thanks!
Andy

Replies:
Re: StreamDevice protocol file question Zimoch Dirk (PSI) via Tech-talk

Navigate by Date:
Prev: RE: Arbitrary rotation angle with areaDetector Plugin Mark Rivers via Tech-talk
Next: Asyn Module Francisco Ramos via Tech-talk
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  <20212022  2023  2024 
Navigate by Thread:
Prev: Re: int64in record not sending monitors for larger value changes Johnson, Andrew N. via Tech-talk
Next: Re: StreamDevice protocol file question Zimoch Dirk (PSI) via Tech-talk
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  <20212022  2023  2024 
ANJ, 31 Jul 2021 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·