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  <20102011  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  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject:
From: Gorka Ronda <[email protected]>
To: "[email protected]" <[email protected]>
Date: Tue, 14 Sep 2010 14:52:33 +0200

Hello everyone,

Using streamDevice, How can I run the command dbtr like a function with parameters? Something like:

Function (parameter 1, parameter 2)

How do I have to write the protocol and record? There are currently as follows:

HI = \x04;

LO = \x57;

cmd4 = \xC0\x04\xFB${HI}${LO}\x00\x00\x00\x00%<xor>;

 

c4 {

    out "\$cmd4";

    in "%*4r";   

}

 

 

record(bi, "$(P):$(R):C4")

{

    field(DESC, "Command 4")

    field(DTYP, "stream")

    field(INP,  "@devwbc6600.proto c4 $(PORT) $(A)")

}

 

What I want is not to specify the values of the variables HI and LO in the archive .proto. I want to give them values when I call the command dbtr (another command to process the records?), to give these variables the hexadecimal value I want, each time I run the command.

Thanks in advance,

Gorka

 


Replies:
Re: Stream Device With Parameters Dirk Zimoch

Navigate by Date:
Prev: Strange gateway error message Dirk Zimoch
Next: Re: Stream Device With Parameters Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Strange gateway error message Jeff Hill
Next: Re: Stream Device With Parameters Dirk Zimoch
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·