01-26-2015 12:40 PM
01-26-2015 01:47 PM - edited 01-26-2015 02:00 PM
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.