|
Re: High CPU Usage in LabVIEW even with Basic Code
The System Manager is very useful, but its default setup adds a huge amount of its own overhead. After opening the system manager, click on the VIs tab (I think that is the name), the second one. Turn off the checkbox that displays VI state. Now go back to the first tab and click on the CPU and perhaps off the disk. The important one is the VI state as that will constantly visit every VI in memory to tell you if they are idle, running, etc. Like I said, that adds a huge amount of overhead.
I think at that point you should see the CPU usage being around 5.5 or so when no code is running, and around 12 to 15 without camera when your app is running. Clearly, the more panels you have open that are displaying data, the more the number will climb.
The equivalent of this tool for C/C++ is to connect the serial cable and use something similar to ps, don't remember exactly what the command is. There may be a similar tool build into Wind River, not sure.
Greg McKaskle
|