取消
顯示結果 
搜尋替代 
您的意思是: 

Whats the best way to stop a .vi

已解決!
前往解決方案

Using multiple While loops. Is it best to wire up all loops to one stop using locals?? or is there a better way??

 

Stu

0 積分
1 條訊息(共 6 條)
3,549 檢視
解決方案
接受者 stu22

I generally agree with the example smercurio gave.

Have a "main" while loop that makes a queue to pass to the other loops.

When the user wants to stop the VI, the main loop will control the order in which the rest of the code should stop.

Cory K
3 條訊息(共 6 條)
3,544 檢視

I like using queues or notifiers.

Never Locals..

 

I might use a ActionEngine if it is used to propagate status or events.

0 積分
4 條訊息(共 6 條)
3,517 檢視

 


@Ray.R wrote:

I like using queues or notifiers.

Never Locals..

 

I might use a ActionEngine if it is used to propagate status or events.


.... and here comes Ben 高興表情

 

Cory K
0 積分
5 條訊息(共 6 條)
3,504 檢視

Generally i avoid queues, not sure why lol But i like this answer. Simple and elegant.

 

Thanks Stuart

0 積分
6 條訊息(共 6 條)
3,496 檢視