LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

terminate state machine

Attachment is the simple state machine i did and for ur better understanding.
 
I have a state machine and which initially is at case "wait". After pressed the start button, it go to case "First" which sum the values and then got to case "Second" which subtract the values. And it will back to the wait again.
 
Wait i wish to is
1) I wish the state machine to stop after the case "Second" or after subtract the 2 values and switch on the LED (2nd Sequence) in the second flat sequence frame.
2) I only want the loop to run for one time only and do not repeat.
 
Thanks for ur help and time or reading.
0 Kudos
Message 1 of 9
(3,693 Views)
Just send a TRUE to Loop Contition
Message 2 of 9
(3,686 Views)

see the attached one. Is this what u want?

 

Thanks,

Mathan

Message 3 of 9
(3,680 Views)
LOLz, tat easy.
 
Thanks ya.
0 Kudos
Message 4 of 9
(3,675 Views)

Hi Mathan,

Is it possible to save the VI in labview 8.0 version

 

To Pnt,

I don think the way u suggest works. Or maybe i have some mistake.

I added a TRUE to stop the loop but it did not stop and continue back.

Thanks.

0 Kudos
Message 5 of 9
(3,663 Views)


neiviv wrote:

Hi Mathan,
Is it possible to save the VI in labview 8.0 version


You don't need it. Pnt's solution is better because it does not use local variables.

neiviv wrote:
I added a TRUE to stop the loop but it did not stop and continue back.
Are you using the "continuous run" button to run the VI???   Don't!
 
Use the plain Run button!.
Message 6 of 9
(3,642 Views)
icic. Thanks for ur explanation. Its my mistake.
 
Thanks you or the help.
0 Kudos
Message 7 of 9
(3,634 Views)
wrong message..
just ignore..


Message Edited by Pnt on 04-26-2008 01:00 AM
0 Kudos
Message 8 of 9
(3,600 Views)

Hai,

Here is what u asked in LV 8.0

Thanks,

Mathan

Message 9 of 9
(3,543 Views)