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: stream device user variables
From: Al Honey <[email protected]>
To: "'[email protected]'" <[email protected]>
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  <20172018  2019  2020  2021  2022  2023  2024 
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  <20172018  2019  2020  2021  2022  2023  2024