LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to reduce on full speed running loops

I have a problem, with time delay's in my main vi. That is, all the loops are running on full speed. How can i speeddown the loops?. Example: my Flow loop. it is running for 20 sec's and resets the flowcount, after that it can wait e few sec's and the run again.
How to fix this?




The vi what i have attached is for 1 channel, but i have total 5 channels and a waterhousehold system.

I'm running with Labview 6.1 and the Hardware: Fieldpoint

Tia, William
Running with Labview 6.1
Fieldpoint hardware
Download All
0 Kudos
Message 1 of 3
(2,641 Views)
Look in the Time and Dialog palette and grab a "Wait (ms)" function and drop one in each loop. Then wire a time delay to these. This will put a time delay in each loop that you specify.

You'll probably have to experiment a bit to figure out how fast each loop needs to run. With no delay in the loops, they will run as fast as your processor can handle, which could be 10s of thousands of times per second. Drop an indicator on the iteration terminal in one of your loops and let it run for a couple seconds and you'll see what I mean. Plus with no timing in the loops, they will not run at a steady rate as they fight for processor time (also appearent when you watch the iteration counter, it jumps)

A time delay will give your system time to do othe
r tasks and will make the loops run at a steady rate. It can be as small as 1 ms, but it's not likely that you need it run that fast.

Ed


Ed Dickens - Certified LabVIEW Architect
Lockheed Martin Space
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 3
(2,641 Views)
Ed,

Thanks for the fast reply, after recieving your answer, i placed some wait's in different loops and it seems to work. Tomorrow i'm going to test it live on my system.

William
Running with Labview 6.1
Fieldpoint hardware
0 Kudos
Message 3 of 3
(2,641 Views)