LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i do this in one loop

I am running a data acqusition program that scans every several
seconds but inside that I have a section I need to update precisly
every 5 minutes. How can I run a slower program inside a main loop
thats running faster without causing that faster loop to be held up?

Hope this is an easy one

thanks

bill.brandenburg@jhuapl.edu
0 Kudos
Message 1 of 3
(2,382 Views)
Hi,
you may run them in parallel loops. If you want to perform some operations precisly every 5 minutes then you have to paste into slower loop the "Functions/Time&Dialog/Wait until next ms multiple.vi" with 5*60*1000=300000 ms input.
If you need to pass data from one loop to another you may use local variables.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 3
(2,382 Views)
> I am running a data acqusition program that scans every several
> seconds but inside that I have a section I need to update precisly
> every 5 minutes. How can I run a slower program inside a main loop
> thats running faster without causing that faster loop to be held up?
>


A second approach is to run the outer loop at the rate you need. Each
iteration of the loop, check to see if the slower item needs to take
place this time and run the approriate

Greg McKaskle
0 Kudos
Message 3 of 3
(2,382 Views)