EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: streamDevice trick for in with or without value
From: [email protected]
To: EPICS tech-talk <[email protected]>
Date: Tue, 1 Jun 2010 21:34:27 -0700
I am using stream.
I have a serial device whose query/reply follow thisi pattern:

out "get value"
in  "F: W: IK:"
If values are 0

If values are not 0, I have
out "get value"
in  "F: 12 W: IK:" <- value is 12

Is there a way to make this value conditional in stream?
With the current protocol, I have a mismatch and my record becomes invalid
(and stop processing).

1/ How can I make the protocol work?
2/ Assuming that there is a mismatch, how can I restore my record to "valid" status?

thanks,

-- 
Emmanuel

Replies:
Re: streamDevice trick for in with or without value emmanuel_mayssat
Re: streamDevice trick for in with or without value Dirk Zimoch

Navigate by Date:
Prev: Multiline input to drvAscii? Maren Purves
Next: Re: streamDevice trick for in with or without value emmanuel_mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Multiline input to drvAscii? Maren Purves
Next: Re: streamDevice trick for in with or without value emmanuel_mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024