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  <20132014  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  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: How to Read Multiple Values using StreamDevice with array_in
From: Yasemin Barutçu <[email protected]>
To: "[email protected]" <[email protected]>
Date: Mon, 7 Oct 2013 11:03:54 +0300
Hello,

I have a self-produced thermocouple and I connect to this device by RS 232.
I want to read 6 different integers when I send "MEASC" command to the device.

in thermo.proto file, if I define %s, I can read all data by stringin.

MEASC{
    out "MEASC";
    in "%s";
}

Example:
2013/10/07 10:59:53.633 192.168.1.198:9001 write 6
MEASC\n
2013/10/07 10:59:53.647 192.168.1.198:9001 read 8
029 030 029 028 028 028


But I want to take all 6 datas in integer format. I search the streamdevice documentation and I found the following line.
 
MEASC{
    out "MEASC";
    array_in {separator=" "; in "%d";}
}

But it doesn't work. I got the following error.

2013/10/07 11:03:03.556245 _main_ thermo.proto line 11: Definition of 'array_in' not in global context (missing '}' ?)
2013/10/07 11:03:03.556313 _main_ thermo.proto line 9: in protocol 'measc'
2013/10/07 11:03:03.556336 _main_ while reading protocol 'MEASC' for 'Measc'
2013/10/07 11:03:03.556345 _main_ Measc: Protocol parse error
2013/10/07 11:03:03.556350 _main_ Measc: Record initialization failed
2013/10/07 11:03:03.556377 _main_ Protocol file 'thermo.proto' is invalid (see above)
2013/10/07 11:03:03.556385 _main_ while reading protocol 'IDN' for 'IDNthermo'
2013/10/07 11:03:03.556391 _main_ IDNthermo: Protocol parse error
2013/10/07 11:03:03.556397 _main_ IDNthermo: Record initialization failed

Yasemin

Replies:
Re: How to Read Multiple Values using StreamDevice with array_in Dirk Zimoch

Navigate by Date:
Prev: Job Openings at SNS/ORNL Hartman, Steven M.
Next: Re: How to Read Multiple Values using StreamDevice with array_in Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: EPICS Collaboration Meeting in San Francisco Noboru Yamamoto
Next: Re: How to Read Multiple Values using StreamDevice with array_in Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·