EPICS Home

Experimental Physics and Industrial Control System


 
1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: snc/seq enhancements ... local-variable access
From: Eric Norum <[email protected]>
To: "Laznovsky, Michael" <[email protected]>
Cc: Tim Mooney <[email protected]>, [email protected]
Date: Thu, 6 Apr 2006 13:48:43 -0500
I agree with Michael that turning seq from a DFA into an arbitrary procedural language interpreter is not a good thing.

On Apr 6, 2006, at 1:09 PM, Laznovsky, Michael wrote:

Hi- while this might be fairly easy to do given the way seq does its
internal bookkeeping, seems to me it would muck up the relatively clean
DFA state-machine model we have now. I've handled cases like you describe
(e.g. an "ABORT" button that allows interrupting a long series of states)
by adding extra intermediate states, as in:


	state A
	{
		entry {
			flag = OK;
		}
		when (<event>) {
			if (trouble) flag = BUBU;
		} state A_check
	}

	state A_check
	{
		when (flag == BUBU) {		/* uh oh! */
		} state A_abort
	
		when () {
		} state B				/* next state */
	}

The "out-of-order" transitions I mentioned referred to a future debugging
environment, where it might be useful to interactively force a transition
to an arbitrary state.




-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793



Replies:
Re: snc/seq enhancements ... local-variable access Tim Mooney
References:
RE: snc/seq enhancements ... local-variable access Laznovsky, Michael

Navigate by Date:
Prev: RE: pvPut() in entry()? Gurd, Pamela A.
Next: Re: snc/seq enhancements ... local-variable access Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: snc/seq enhancements ... local-variable access Laznovsky, Michael
Next: Re: snc/seq enhancements ... local-variable access Tim Mooney
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024