I've just added the "option +r;" to several sequence programs so that the same code
can run for two different subsystems (High and Low energy PEP-II ring injection).
Since these SNL programs with associated subroutines are my favorite hammer, some have
gotten complicated. Since I access PV-assigned variables in my escaped "C"
subroutines, I've added the pVar-> notation and passed in pVar as an argument, as the
documentation insists I should. My question concerns the fate of other file scoped
variables.
In the dumb example below, do order_a and bunch_time need to be part of some structure
allocated at run time and referred to indirectly as in the pVar example?
If they are not, do two seperate invocations of this sequence (with other STN macro
substitution) then refer to the same storage locations?
Thanks in advance.
/Ron Chestnut
P.S. William, have you broken the latest SNL stuff out of base yet???
- Navigate by Date:
- Prev:
Looking for statically linked MEDM 2.3.3 Brian McAllister
- Next:
Ammended Job posting. Hammonds, John
- 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
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Looking for statically linked MEDM 2.3.3 Brian McAllister
- Next:
Re: SNL variable scoping questions William Lupton
- 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
2018
2019
2020
2021
2022
2023
2024
|