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  2013  2014  2015  2016  2017  <20182019  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  <20182019  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 Lixing,

Regarding:

2018/02/26 21:56:38.240082
_main_ devtemperature.proto line 9: Missing value for parameter $2

Your protocol function expects six parameters, $1...$6, but you are giving it only one ($1).

Try changing
field(INP,  "@devtemperature.proto getTEM(1) $(PORT) $(A)")
To
field(INP,  "@devtemperature.proto getTEM(1, 2, 3, 4, 5, 6) $(PORT) $(A)")



Bruno

On Mon, Feb 26, 2018 at 9:19 AM, l123173 <[email protected]> wrote:
Hi all,
     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 {
    MaxInput = 17;
    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";
# 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.

    extrainput = ignore;
}


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


 



Replies:
Re: Redirection question Zimoch Dirk (PSI)
References:
Redirection question l123173

Navigate by Date:
Prev: RE: Asyn not automatically reconnecting Daykin, Evan
Next: RE: Excel DDE to EPICS interface freddie.akeroyd
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Redirection question l123173
Next: Re: Redirection question Zimoch Dirk (PSI)
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 26 Feb 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·