Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 69213

How to implement single and continuous run?

$
0
0

 

Hi All:

 

I add two controls on front panel, a "single" button, and a "continuous " one.

 

When "single" is pressed, the sub VI will execute only once.

 

But when "continuous" is pressed, the sub VI will execute continously.

 

 

 

I think I can use a while event structure , which captures the button events,

 

for "single button clicked event ", I just put sub VI  into the diagram.

 

 

For "continuous" condition, I will circle the sub VI with a while loop, inside the event diagram.

 

But now the problem is :  how should I wire the stop button for this while loop?

 

I think it should stop as soon as "single " button clicked, because now I am going to switch to "single" state.

 

 

Maybe I should wire the single button to the stop button? 

 

 

 

Do you have other solutions?

Any suggestions will be greatly appreciated. Many thanks.

 

 

 


Viewing all articles
Browse latest Browse all 69213

Trending Articles