Experimental Physics and Industrial Control System
|
Yes it does. Cut your program down to a single state set, use variables in the PV names, set the reetrant flag, then launch the same program multiple times ... /* set reentrant option for multiple instances */ option +r; float pv1; assign pv1 to "magnet{mag}"; ss ss1 { state one { pv1 = 1; pvPut(pv1); } state two state two { pv1 = 2; pvPut(pv1); } state one
} In the st.cmd file ... seq &sncExample, "mag=1" seq &sncExample, "mag=2" Ned
From: "Bradley Pietrzak" <[email protected]> To: [email protected] Sent: Thursday, September 22, 2011 10:53:37 AM Subject: Combing Two State Sets into One
Hello,
The state notation language program shown below runs successfully. "magnet1" and "magnet2" are nothing more than simple analog inputs. Clearly, state sets one and two are identical, except for the process variables on which they operate. Ultimately, I'd like to combine the two state sets into a single state set which can operate on either pv1 or pv2, depending on which of the two variables I "pass" into it. Does the state notation compiler allow for such functionality? Any help would be greatly appreciated.
Thanks,
Bradley Pietrzak Indiana University Center for the Exploration of Energy and Matter
/* Sample Program */ program sncExample
float pv1; assign pv1 to "magnet1";
float pv2;
assign pv2 to "magnet2";
ss ss1 {
state one { pv1 = 1; pvPut(pv1); } state two
state two { pv1 = 2; pvPut(pv1); } state one
}
ss ss2 {
state one {
pv2 = 1;
pvPut(pv2);
} state two
state two {
pv2 = 2;
pvPut(pv2);
} state one
}
- References:
- Combing Two State Sets into One Bradley Pietrzak
- Navigate by Date:
- Prev:
Re: Combing Two State Sets into One Matthieu Bec
- Next:
Re: Combing Two State Sets into One J. Lewis Muir
- 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:
Re: Combing Two State Sets into One Matthieu Bec
- Next:
Re: Combing Two State Sets into One J. Lewis Muir
- 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
|
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|