Go to Post The pen [may be] mightier than the sword, but the bandsaw can chop them both. - Marc P. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Spotlight this post!  
Unread 28-01-2009, 08:44
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
pic: Aiming High, even before 2006 FIRST Aim High RoboMadi Extra Discussion 7 29-10-2012 12:23
Basic Labview Programming Questions comphappy NI LabVIEW 20 13-10-2008 18:29
syntax error in code that i have never even seen before: HELP! pbhead Programming 10 24-02-2006 14:22
even simple autonomous code doesn't work?? colman77 Programming 4 17-02-2006 23:58
Whats with the Serout usage? PyroPhin Programming 2 12-01-2003 01:01


All times are GMT -5. The time now is 21:48.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi