LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

State Machine - stop previous case [some data]

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.

0 Kudos
Message 1 of 2
(1,946 Views)

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


CLA CTAChampionI'm attending the GLA Summit!
Subscribe to the Test Automation user group: UK Test Automation Group
0 Kudos
Message 2 of 2
(1,940 Views)