LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Why does labwindows/CVI takes all processor time since I run the cvi.exe file, even without doing anything with it?

When I open LabWindows/CVI aplication my computer dedicates all the processor to this aplication. This happens even before opening any file to edit. When running my aplication inside CVI it compiles and runs with no problem except it generates errors in the hardware I'm using.
0 Kudos
Message 1 of 3
(2,985 Views)
CVI runs its own message processing loop to monitor the user interface events and other events. There is something called the Sleep Policy that determines how aggressively CVI's message loop checks for messages. You can change the sleep policy with the function SetSleepPolicy. Set the sleep policy to VAL_SLEEP_SOME or VAL_SLEEP_MORE, and you will most likely see the CPU usage go way down.

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(2,985 Views)
Thanks for your answer.

I know that, but that's not what is causing problems. The problem is when I open the CVI aplication to develop the code. Even before starting to edit my code the processor time is already dedicated to the developement enviroment application (cvi.exe). I checked in other computers and the processor time is usualy 7, 8%, less then a tenth of the time taken in my computer.
0 Kudos
Message 3 of 3
(2,985 Views)