LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Wait untill button is pressed


@paul_cardinale wrote:

ks fine.  I've used it many times.

Yes, because the loop spins at least twice. The first iteration gets the stale value (F) to the conditional terminal and the second action (button release?) gets the stale value from the previous iteration, which is now TRUE.

 

Do this and observe:

Create an indicator on the iteration terminal:

  • As soon as you run the VI, it reads 1, meaning the loop has spun once.
  • Mouse down in the numeric indicator, and the loop spins some more.
  • Hold the OK button down and the loop continuous to spin until you release the button
  • When you release (latch when released!), it probably spins one extra iteration and stops the VI.

Seems somewhat ugly. 😉

 

A simple illustration:

 

 

.... but yes, it does the job from a user perspective ..... (probably most of the time)

Message 11 of 11
(1,341 Views)