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.