キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/9
4,014件の閲覧回数
Just send a TRUE to Loop Contition
メッセージ2/9
4,007件の閲覧回数

see the attached one. Is this what u want?

 

Thanks,

Mathan

メッセージ3/9
4,001件の閲覧回数
LOLz, tat easy.
 
Thanks ya.
0 件の賞賛
メッセージ4/9
3,996件の閲覧回数

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 件の賞賛
メッセージ5/9
3,984件の閲覧回数


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!.
メッセージ6/9
3,963件の閲覧回数
icic. Thanks for ur explanation. Its my mistake.
 
Thanks you or the help.
0 件の賞賛
メッセージ7/9
3,955件の閲覧回数
wrong message..
just ignore..


Message Edited by Pnt on 04-26-2008 01:00 AM
0 件の賞賛
メッセージ8/9
3,921件の閲覧回数

Hai,

Here is what u asked in LV 8.0

Thanks,

Mathan

メッセージ9/9
3,864件の閲覧回数