Experimental Physics and
| |||||||||||||||
|
Hello, I have a self-produced thermocouple and I connect to this device by RS 232.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
| ||||||||||||||
ANJ, 20 Apr 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |