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?
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.
> 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