1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 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 2013 2014 2015 2016 2017 <2018> 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Redirection question |
From: | Bruno Martins <[email protected]> |
To: | l123173 <[email protected]> |
Cc: | tech-talk <[email protected]> |
Date: | Mon, 26 Feb 2018 10:28:38 -0500 |
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:extrainput = ignore;getTEM.VAL).2r%(\$3:getTEM. VAL).2r%(\$4:getTEM.VAL).2r%(\ $5:getTEM.VAL).2r%(\$6:getTEM. VAL).2r%*02r";
# 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