LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why the time differece between a timed loop will always be 32ms even I have set the period to be 10ms??

I'm a beginner of LV,my problem , as u can see from the title, is how to ensure a timed loop to have a period with 10ms?
I have tried many methods but a magic number 32ms always appear?
Can anyone tell me the reason?
Thx a lot!!!

program attached!
0 Kudos
Message 1 of 14
(3,373 Views)
Smiley Surprised

I ran your VI and here is the result I got without changing anything... the loop execute at the rate of 10ms...

Could this come from your PC ? Is it an old slow PC ?






We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 14
(3,366 Views)
I use HP notebook (Model nx6120) , 1.73Ghz to run the program and the result is like that
0 Kudos
Message 3 of 14
(3,361 Views)
Hmmm... that's weird ! I tried your VI many times on my computer and it always works as expected Smiley Indifferent

I'll see if I can run it on an old computer. Old the line...

Also, could you try to run the attached VI (in a row.vi) and tell me the result you get ?


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 14
(3,350 Views)
here' sthe result~~
do u think that the problem arise from my notebook??
0 Kudos
Message 5 of 14
(3,345 Views)
Smiley Surprised... I don't have a clue... Smiley Surprised... might be you PC.

The result I get on my computer seems sensible (see attached test_.xls) the first write takes longer because the file has to be created and then it is very fast.

Sorry, I don't understand your results.. Smiley Sad



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 6 of 14
(3,341 Views)
Nevermind, u really help me a lot~~~
But, I still have one more question. I carefully look at ur ok.xls file, i find that not all the difference equal to 10
(e.g. in 44th, 45th and 341st row), why do these happen??
0 Kudos
Message 7 of 14
(3,335 Views)
I have no idea about that either, I almost never use Timed Loops so I don't know how to interpret this.

When it 9 or 11 instead of 10 I assume it is more or less inevitable ; but once it lasts 50ms... I don't know why.
Maybe this won't happen if you increase the priority of the loop.

Sorry, we've reach my limit Smiley Sad

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 8 of 14
(3,331 Views)
Anyway, Thx a lot~~~
one more question, would u mind telling me the specification of ur computer??
0 Kudos
Message 9 of 14
(3,329 Views)
here it is :


Maybe the details of the hard drive have to be concidered... who knows...

Message Edité par TiTou le 07-14-2006 11:37 AM


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 10 of 14
(3,326 Views)