LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event does not work with while loop and it stop function the VI

Solved!
Go to solution

hello everybody, 

I have a problem , I uses 3 loops ,each loop do a function , first loop acquire the data and display it , seconde take data and save it in .txt and the third loop for event to action somme function , the problem that the third loop doesn't work and if I push of button's event the Interface blocked.you find my vi here. 

0 Kudos
Message 1 of 5
(2,735 Views)

That's not a VI, just a truncated blurry code image.

 

Your upper loop can never stop because a FALSE is wired to the stop terminal.

That loop can only go to the next iteration when both events have fired, so most likely never, especially if they are configured to lock the front panel.

 

Attach your actual VI. Still, you probably should start with some simple tutorials about dataflow.

0 Kudos
Message 2 of 5
(2,728 Views)

Thanks for replying,

I knew but I don't want to stop the loop , I want working all the time to action the event,however the loop doesn't work ,the iteration still in 0

0 Kudos
Message 3 of 5
(2,708 Views)
Solution
Accepted by topic author ouassim.ahmadi
0 Kudos
Message 4 of 5
(2,705 Views)
Solution
Accepted by topic author ouassim.ahmadi

Why do you have two event structures in your loop? You definitely need to read up on how to use event structures - and perhaps some basic tutorials on dataflow. Your loop will not iterate until both of your event structures have fired.

0 Kudos
Message 5 of 5
(2,685 Views)