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 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
<== Date ==> <== Thread ==>

Subject: RE: How to write multi value in a caput message?
From: Iain Marcuson <Iain.Marcuson@sydorinstruments.com>
To: PilkyuJung <pilkyu@bmii.co.kr>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 31 Jan 2017 13:38:27 +0000

If I’m understanding correctly, you may be able to use something like the following in the .proto file:

 

setDIS {

                Separator= ",";

                 out "DISP %f";

}

 

Stream Device will automatically iterate over the elements of an aao or a waveform, putting the separator between elements.

 

Iain.

 

 

From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of PilkyuJung
Sent: Tuesday, January 31, 2017 2:23 AM
To: tech-talk@aps.anl.gov
Subject: How to write multi value in a caput message?

 

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: Re: How to write multi value in a caput message? Maren Purves
Next: Re: How to write multi value in a caput message? Pearson, Matthew R.
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
Navigate by Thread:
Prev: Re: How to write multi value in a caput message? Maren Purves
Next: Re: How to write multi value in a caput message? Pearson, Matthew R.
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
ANJ, 14 Feb 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·