Experimental Physics and
| |||||||||||||||
|
What I'd like to do is set a stringout record (using the Here is what I have tried, but it doesn't seem to work."%(otherrecord)s" method) to a specific string value, based on which exception handler is called in a protocol.--- OutTerminator = CR LF CR LF; InTerminator = "</html>"; ExtraInput = ignore; ReadTimeout = 10000; ReplyTimeout = 30000; getData { connect 1000; out "GET /weather/current/ukirt/ HTTP/1.1" CR LF "Host:" CR LF "User-Agent: EPICS IOC"; in "%*/temperature/%(\$1Temp)f " "%*/humidity/%(\$1Humid)f " "%*/pressure/%(\$1Press)f " "%*/speed/%(\$1WindSpeed)f " "%*/direction/%(\$1WindDir)f "; disconnect; @mismatch { out ' "Bad response from web site", %(\$1:errmsg)s;'; } @replytimeout { out ' "No response from web site", %(\$1:errmsg)s;'; } @readtimeout { out ' "Timeout while reading from web site", %(\$1:errmsg)s;'; } } -- Mike Westfall Control Systems Software Engineer
| ||||||||||||||
ANJ, 26 Oct 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |