Experimental Physics and
| |||||||||||||||
|
Hi all, MaxInput = 17; I wan to division the input string to several records. I checked the subject of tech-talk about redirection. Then I modified my file as much as the same with the example in tech-talk. But still failed. So could someone give me some advice. Typed: dbpf 1:getTEM 1 Get: 2018/02/26 21:56:54.551519 _main_ 1:getTEM: Record not initialised correctly dbpf: Value conversion from STRING to DOUBLE failed record(ai, "1:getTEM") { field(DESC, "SCPI identification string") # field(SCAN, "5 second") field(DTYP, "stream") field(INP, "@devtemperature.proto getTEM(1) $(PORT) $(A)") field(FLNK, "2:getTEM") } record(ai, "2:getTEM") { field(FLNK, "3:getTEM") } record(ai, "3:getTEM") { field(FLNK, "4:getTEM") } record(ai, "4:getTEM") { field(FLNK, "5:getTEM") } record(ai, "5:getTEM") { field(FLNK, "6:getTEM") } record(ai, "6:getTEM") { } getTEM { out "\xFE\x04\x00\x00\x00\x06\x64\x07"; in 0xfe 0x04 0x0c "%(\$1:getTEM.VAL).2r%(\$2:getTEM.VAL).2r%(\$3:getTEM.VAL).2r%(\$4:getTEM.VAL).2r%(\$5:getTEM.VAL).2r%(\$6:getTEM.VAL).2r%*02r"; extrainput = ignore;# all message read back was hex. It works well except a little qustion, if I just get one value(I mean %2r%*2r...). The little questiont: first inquiry could not get value, then all good. } And the IOC output was: ############################################################################ ## EPICS R3.14.12.7 ## EPICS Base built Feb 7 2018 ############################################################################ 2018/02/26 21:56:38.240082 _main_ devtemperature.proto line 9: Missing value for parameter $2 2018/02/26 21:56:38.240147 _main_ devtemperature.proto line 9: in command 'in' 2018/02/26 21:56:38.240166 _main_ devtemperature.proto line 5: in protocol 'gettem' 2018/02/26 21:56:38.240197 _main_ while compiling protocol 'getTEM(1)' for '1:getTEM' 2018/02/26 21:56:38.240216 _main_ 1:getTEM: Protocol parse error 2018/02/26 21:56:38.240231 _main_ 1:getTEM: Record initialization failed iocRun: All initialization complete ## Start any sequence programs #seq sncxxx,"user=lyxHost" Wishes, Lixing
| ||||||||||||||
ANJ, 26 Feb 2018 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |