DFooz Posted December 8, 2008 Report Share Posted December 8, 2008 Program should work in interactive mode: set a value, press Start, press Stop, set a value.... In order to do this I use Flat Sequence and Event sequence: in first rectangle of Flat Sequence I set values, in second - what my program must do. Event Sequence is used to handle Exit Button Event. Are easier methods of values initialization exist? Quote Link to comment
BobHamburger Posted December 8, 2008 Report Share Posted December 8, 2008 Two sage words of advice for you: State Machine. Look it up. Learn it, live it, love it. Quote Link to comment
PaulG. Posted December 8, 2008 Report Share Posted December 8, 2008 QUOTE (BobHamburger @ Dec 7 2008, 03:39 PM) Two sage words of advice for you: State Machine.Look it up. Learn it, live it, love it. :thumbup: State machines are the Holy Grail of programming, grasshopper ... in any programming language. :ninja: Quote Link to comment
crelf Posted December 9, 2008 Report Share Posted December 9, 2008 QUOTE (BobHamburger @ Dec 7 2008, 03:39 PM) Look it up. Learn it, live it, love it. Become the state machine, have it be an extension of your self, and you an extension of it. Once you are truly at one with the state machine, you have begun travelling down the long path towards even better architectural design patterns... PS: to avoid confusion here, what most people are referring to is a "http://en.wikipedia.org/wiki/Finite_state_machine' rel='nofollow' target="_blank">finite state machine". Understand the theory first, then take a look at the templates that come with LabVIEW (they're in the "Getting Started" screen). Quote Link to comment
DFooz Posted December 9, 2008 Author Report Share Posted December 9, 2008 thanks Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.