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: stream device user variables
From: Al Honey <ahoney@keck.hawaii.edu>
To: "'tech-talk@aps.anl.gov'" <tech-talk@aps.anl.gov>
Date: Tue, 7 Mar 2017 21:57:21 +0000

Hi

Just wondering if there is a mechanism for modifying the values of stream protocol user variables.

 

‘param’ is the user variable whose value I am attempting to alter.

param = "0";

 

getString {

        out "string? " $param;

        in  "%s";

}

 

The following do not affect the user variable ‘param’, declared above:

paramE {

        $param = "1";

        out "NOP " $param;      This actually is always “0”

}

 

paramD {

        $param = "0";

        out "NOP " $param;

}

 

The following work, in a sense, in that the param variable changes, but it’s scope appears to be within the specific protocol function, that is, the ‘global’ variable at the top is not affected.

PE {

        param = "1";

        out "NOP " $param;     This does have the value “1”

}

 

PD {

        param = "0";

        out "NOP " $param;

}

 

Also, it seems that an ‘out’ and/or ‘in’ statement is always necessary (errors occur otherwise), indicating that a protocol to simply change a user variable is not possible.

 

Thanks,

Al

 


Navigate by Date:
Prev: Re: STB and Serial Trigger for async devGpib vxi11 device support Eric Norum
Next: Re: EPICS make problem Torsten Bögershausen
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: cs-studio to EDM conversion tool? Luchini, Kristi L.
Next: call of ca_sg_test hangs on in preemptive mode Wang Xiaoqiang
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, 09 Mar 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·