01-24-2012 02:36 AM
Hi!
I am wondering how can you stop previous case in state machine to be running? For example: I have default state(0) (some code) where I push button, and in next state(1) the LED lights up. Now I want in next case(2) to this LED to stop. I tried with simple false statment but it doesn't do anything.
Please help.
01-24-2012 03:10 AM
Have an other state to switch the LED off. Also use type defined enum's, So basically for this application you would have Initialise, LED ON, LED OFF, Stop states etc...
The CLD examples are a good statemachine examples. Have a look at the solutions: http://ftp.ni.com/evaluation/certification/cld/cld_sample_exams_english.zip