EPICS Home

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  <20172018  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  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: How to write multi value in a caput message?
From: Maren Purves <[email protected]>
To: PilkyuJung <[email protected]>
Cc: EPICS tech-talk <[email protected]>
Date: Mon, 30 Jan 2017 21:39:53 -1000
I would use a genSub/aSub and a stringout.

HTH,
Maren

On Mon, Jan 30, 2017 at 9:23 PM, PilkyuJung <[email protected]> wrote:

Hi all,


While I am working with EPICS, I got a problem. When I am using a SCPI command, I need to send two parameter in a message.

As you can see attached image, need 0~14 number and the other. So, now I used %s(in .proto file) and aao (record in .db file) like this.


setDIS{

out "DISP %s";

}


record(aao, "$(P)$(R)ST_x_DisPnl"){

field( DESC, "Display")

field( DTYP, "stream")

field( OUT, "@devddg.proto setDIS $(PORT1) $(A)")

}


That's it. However, I want to control with two parameter like this.


setDIS{

out "DISP %f, %f";

}


$ caput [PV name] value, value


So, please let me know how I can do.


Thanks,

Pilkyu Jung



References:
How to write multi value in a caput message? PilkyuJung

Navigate by Date:
Prev: How to write multi value in a caput message? PilkyuJung
Next: RE: How to write multi value in a caput message? Iain Marcuson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: How to write multi value in a caput message? PilkyuJung
Next: RE: How to write multi value in a caput message? Iain Marcuson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024