LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

100% cpu time on application but not vi

I am trying to build an application but I am running into a problem i have not seen before. I have a vi that uses 3 while loops simultaneously. It works fine when i run it on my developing machine as a vi, but as soon as i make it an application my cpu usage goes to 100%. It still functions, but obviously the pc is doing to much work. Any ideas on why this is happening? Labview 7.0
0 Kudos
Message 1 of 7
(3,365 Views)
Do you have "Wait until ms multiple" in your loops or not?

If you don't, put them in, even if you wire a "1" to the terminal. This will free up the OS scheduler to prevent 100% CPU utilisation.

Hope this helps

Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 7
(3,355 Views)
There was a post regarding something along these lines yesterday, and one of the reasons that that might be happening, is because when you're developing and you run a vi, it's the LabVIEW engine that's taking care of it, but when it's an exe, it's the operating system. I don't know too much about this stuff, but maybe that'll point you in the right direction...

I'm sorry I couldn't find the posting from yesterday (lousy work is getting in the way!)

Geoff
0 Kudos
Message 3 of 7
(3,352 Views)
If possible, place your VIs here, and our enthusiasts here will be able to help you 🙂

Cheers!
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 4 of 7
(3,351 Views)
I have at least 10ms waits on each loop. It is odd also, because i have created many appliations in the past and the cpu time has never been different compared with the .vi. I even tried the lowest priority and the app still uses 100%.
0 Kudos
Message 5 of 7
(3,348 Views)
Post a picture of your block diagram and we'll have it sorted in a jiffy 😛

I hope.

Shane
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 6 of 7
(3,342 Views)
Well i dont really understand but i got it to work now. I installed the lastest visa runtime engine ( i am using the serial vi's) and now it works fine as an application. Go figure...
thanks for all the help!
0 Kudos
Message 7 of 7
(3,325 Views)