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.
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