LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about Event Handler example

which comes with LV 6.1.

When "Acquire" button is pressed, why does Acquire button is connected to
the stop while loop. The example says, "Main VI is running so a FALSE signal
is sent to the while loop and Event structure waits for the enxt event".

I don't understand what it means. In my own example, I don't do this and
verything works fine. So what's the deal with this wiring false signal to
stop while loop.


vishi
0 Kudos
Message 1 of 2
(2,356 Views)
With the Event structure and the Case statement, with wires that exit, you can either explicitly wire a value or select Use Default if Unwired. The default for a Boolean is false. Since the Acquire button was in the event case already, the developer chose to explicitly wire the inverted value to the while loop stop but it would work either way as youo've noticed. If NI ever changes the default value in a future release however, you may find that your VI doesn't work anymore. You have to decide whether to save a couple of wires on the diagram or risk smoe problem in the future.
0 Kudos
Message 2 of 2
(2,356 Views)