LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CPU 100% error in application builder in LV8.0

Dear,
 
My application with LV8.0 includes one while loop plus event structure.
Inside event structure, there are several simple routines for calculating array.
 
In LV8, there is no problem to run the code.
The execution file (after application builder) has a problem in 100% cpu allocation.
(It's very hard to run the Window Task Manager to quit the program.)
 
But there is no a Grphic chart component such as waveform.
 
How to confirm this bug?
I believe there is a chance NI engineer to check my real code.
 
Thank you in advance.
 
Lee
*)Email : poyntor __(AT)__  gmail.com

메시지가 04-05-2007 12:45 AM에 labmaster에 의해 편집되었음

0 Kudos
Message 1 of 3
(2,681 Views)
I can give some general advice without seeing your code.  Make sure you have a little delay in your while loop.  Use the Wait(ms) function and add a little delay.  Sometimes I add just a msec and that is enough of a breather for the processor.  Also,  there is a Wait For Front Panel Activity function that might help.
Brian
0 Kudos
Message 2 of 3
(2,654 Views)
I found the solution of the problem.
 
Actually, I used a file access function to read some text file immediately when the code was launched. 
File open, and then read the text file.
 
In that process, I didn't wire the error terminal.
(Even though, I added some method for user cancelling.)
 
When I treat the error terminal, CPU 100% problem is disappeared.
 
Therefore, I believe NI should include write some warning message on the helpfile for this problem.
 
Lee
0 Kudos
Message 3 of 3
(2,616 Views)