LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

parallel for loops not working

Solved!
Go to solution
Please start a new thread. This has nothing to do with the existing topic. Thanks.
0 Kudos
Message 11 of 12
(431 Views)

alexandresantos wrote:

I would like to ask you how to implement a vi that runs 3 loops with different execution time and have a unique stop button.

Attached a example that explain my project problem.


First you need to learn about dataflow and LabVIEW in general. You code makes no sense at all. No data leaves the loop on the left until stop is pressed (While this loop runs, the CPU core is pegged at 100% because there is no small wait). Once that loop is stopped, the last value from the output tunnel is sent to the other two loops. These loop will display the same value over and over forever, because the data from the input tunnel never changes again.

 

Use one single loop that runs at a common multiple of the current tree loops and enable meter 1 and 2 whenever their update time has elapsed, e.g. using case structures.

 

... and please don't maximize the front panel and block diagram to the screen. That's very annoying.

0 Kudos
Message 12 of 12
(420 Views)