04-19-2007 11:31 PM
04-19-2007 11:48 PM
04-20-2007 02:14 AM
Hi bmunden,
Another "natural" way to order execution is via "data dependency".
... glad you have a solution that works for you.
Cheers!
03-03-2010 11:36 AM
Thanks to all. I have a statemachine in another file. In each state, i plan to dequeue the queue that i created and use the dequeued element for the next state.
I do understand statemachines very well. In my other file, i have a while loop, shift register, and case structure. The shift register is initialized to the init state which is where i want to put the SUBVI that i am questioning about. The dequeued element would be wired to the shift register inside each of the states.
03-03-2010 12:18 PM
03-03-2010 12:56 PM
glstill wrote:Thanks to all. I have a statemachine in another file. In each state, i plan to dequeue the queue that i created and use the dequeued element for the next state.
I do understand statemachines very well. In my other file, i have a while loop, shift register, and case structure. The shift register is initialized to the init state which is where i want to put the SUBVI that i am questioning about. The dequeued element would be wired to the shift register inside each of the states.
Whoops-I sent too many links- GL's OP is HERE
03-03-2010 01:19 PM - edited 03-03-2010 01:26 PM
Just as a /aside, I disagree with the application of the name State Machine (as in the JKI template) in the context of LabVIEW. That particular state machine is actually a simple subroutine execution method. I'll go a step further and say that the built in Producer/Consumer Event template is superior and that a string based message system is very error prone.
But since it is already an established name and people are familiar with it, I digress.
What I consider a State Machine, I have renamed to State Controller to avoid confussion when talking with other LabVIEW users. My background and understanding of "State Machine" is best defined as Synchronous and Non-synchronous Finite State Machines. http://en.wikipedia.org/wiki/Finite-state_machine
03-03-2010 01:52 PM
03-03-2010 02:08 PM
Nickerbocker wrote:Just as a /aside, I disagree with the application of the name State Machine (as in the JKI template) in the context of LabVIEW. That particular state machine is actually a simple subroutine execution method. I'll go a step further and say that the built in Producer/Consumer Event template is superior and that a string based message system is very error prone.
But since it is already an established name and people are familiar with it, I digress.
What I consider a State Machine, I have renamed to State Controller to avoid confussion when talking with other LabVIEW users. My background and understanding of "State Machine" is best defined as Synchronous and Non-synchronous Finite State Machines. http://en.wikipedia.org/wiki/Finite-state_machine
Message Edited by Nickerbocker on 03-03-2010 12:26 PM
I very rarely use string based state machines for the reasons you mentioned. I prefer to use discrete state defintions using typedefed ENUMs.
03-03-2010 02:18 PM