LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Before the selector value reach a Case structure I need to stop it until a push button is pressed. How to do?

Before the selector value reach a Case structure I need to stop it until a push button is pressed. How to do?
0 Kudos
Message 1 of 7
(3,649 Views)
I'd look into event structures if I were you.  Then you can put your case structure in the event case of the push button, and drop the selector control in the same event case.
Message 2 of 7
(3,636 Views)

Hello,

 

simply wire your selector value through a while loop. Stop the loop with your button. After the loop stops, the value will go on to the case structure.

 

Hope this helps.

Uli

Message 3 of 7
(3,635 Views)

Hi Jbn,

plaese give more details. Do "pause" your program you can use a while loop where you check the value of a button or you can use an event structure where you define an event for a button or another control.

 

Hope it helps.

Mike

Message 4 of 7
(3,634 Views)

UliB wrote:

Hello,

 

simply wire your selector value through a while loop. Stop the loop with your button. After the loop stops, the value will go on to the case structure.

 

Hope this helps.

Uli


 

Make sure to include a Wait (ms) or else you'll burn all your CPU cycles waiting for a button press
Message 5 of 7
(3,629 Views)

UliB wrote:

simply wire your selector value through a while loop. Stop the loop with your button. After the loop stops, the value will go on to the case structure.


Hmmmm..... 😄

Message 6 of 7
(3,621 Views)

altenbach wrote:

UliB wrote:

simply wire your selector value through a while loop. Stop the loop with your button. After the loop stops, the value will go on to the case structure.


Hmmmm..... 😄


Hello altenbach,

 

roflol :smileyvery-happy:.

Thank you for the link to 'A Field Guide To LabVIEW Objects - Selfish Loop'. I'll keep that in mind, when answering other questions with while loops.

 

Uli

Message 7 of 7
(3,596 Views)