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  <20142015  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  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Stream device protocol files question?
From: "Goff, Steven J" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 17 Sep 2014 16:22:11 +0000

Hello,

 

I am trying to understand how to setup a particular command in a protocol file.

 

The command looks like this:

 

Battery On “number”

 

And the command returns either: “OK” or ”Error: err msg”.

 

 

I think my protocol file might look like this:

 

Battery

{

 Out “Battery On %d”;

}

 

And my db file would look like this:

 

Record (longin, “batteryOn”)

{

  Field(DTYP, “stream”)

  Field(INP, “myDev.proto Battery dev”)

}

 

 

How do I get the status that the command returns?

 

I want to do something like

 

Battery

{

  Out “Battery On %d”;

  In “%s”;

}

 

 

But I am already using an input for the battery number.  So how do I do both?

 

Thanks In advance.

 

Steve Goff

 


Replies:
RE: Stream device protocol files question? Emmanuel Mayssat
RE: Stream device protocol files question? peter.owens
Re: Stream device protocol files question? Dirk Zimoch

Navigate by Date:
Prev: RE: Asyn Mark Rivers
Next: Re: Asyn priya tiwari
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Asyn Dirk Zimoch
Next: RE: Stream device protocol files question? Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 17 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·