Go to Post To borrow a slogan from the last place KC Royals "It's Our Time" The curse will be broken! ;) - Alpha Beta [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-03-2010, 23:42
MishraArtificer's Avatar
MishraArtificer MishraArtificer is offline
Winner, Chief Delphi Insanity Award
AKA: Jeremy Marr
FRC #0240 (T.E.M.P.E.S.T.)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Monroe, MI, US
Posts: 231
MishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of lightMishraArtificer is a glorious beacon of light
Re: What does the Camera Slow Down?

Quote:
Originally Posted by slavik262 View Post
The problem seems to have much more to do with the Classmate having issues rendering video and working the TCP stream at the same time due to its absolutely [sarcasm]wonderful processor[/sarcasm].
Is there absolutely nothing to be done about gutting the WinXP install on the Classmates to be able to do more with that chip? I'm aware that hardware-wise, we're screwed, but are we allowed to disable background processes that the Classmates won't be needing for our purposes (such as the Print Spooler)? Someone pointed me at one of the rules in the rulebook, but my machine here at home won't download it properly...
__________________
Madness?
THIS IS F.I.R.S.T!

  #2   Spotlight this post!  
Unread 26-03-2010, 08:16
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,756
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: What does the Camera Slow Down?

While it may be cathartic to gut something every now and then, you may want to look at the task manager before spending the effort. I think you'll find that while there are threads and processes spun up, they aren't doing much.

You will get much better results by hiding the label I mentioned. In hindsight, I'd have hidden it myself, but I thought the performance was acceptable.

Also, I found this info using the profiler built into LV. If you are trying to speed something up, I highly recommend taking measurements first, to know what is slow.

If you have other questions, please post.
Greg McKaskle
  #3   Spotlight this post!  
Unread 26-03-2010, 09:22
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: What does the Camera Slow Down?

Quote:
Originally Posted by Greg McKaskle View Post
Also, I found this info using the profiler built into LV
I don't have LV in front of me, so forgive me if this is something that can be figured out in a few seconds of playing around. Where is the profiler located? Is there anything that would be beneficial to know for a first time user? I'm assuming this should be run on the classmate to get the most bang for the buck and I'm also assuming that it has to be run in the developer account (with no way to profile in the driver account). Thanks!
  #4   Spotlight this post!  
Unread 26-03-2010, 21:30
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,756
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: What does the Camera Slow Down?

I'll be happy to give a bit of guidance.

As with most profilers, it isn't hard, but getting good data and finding the needle in the haystack sometimes takes some finesse.

You will want to run in the developer account, or possibly run on a different computer -- its what I did. By the way, once you use it on the dashboard, you may find it useful on the cRIO too, if using LV.

The profiler is located under Tools>>Profile>>Performance and Memory. It opens the profile window. Open the project for the dashboard, open the dashboard panel, its diagram, start the driver station, killing the DB it opens if necessary. Open the profiler and ...

1. Press Start on the profile window.
2. Run the dashboard for five or ten seconds.
3. Abort the dashboard.
4. Press Stop on the profile window.

This should give you a table. Rows of VIs with columns for VI time, subVI time, and total time. To hunt for the hot spot, it is often useful to sort by different columns by clicking on the header above the column. Clicking on a row hilights it to more easily follow it and absorb what the row is telling you. Additionally, it is often useful to double click a VI row to see how that item was affected by subVI calls. This lets you see how common subVI calls are charged to different callers. You can right click on a row to access a contextual menu that aids navigation to hierarchy, to the VI, or to callers. You may also find it useful to turn on Timing Statistics (after the fact is fine). I don't use it for statistics so much as number of calls to spot n-squared algorithms, etc. Also useful (after the fact is fine) is the Timing Details to see drawing time, display time, etc.

Saving the profile data will put it into a spreadsheet file. You cannot load it into the profile window again, but you can make due with loading several sheets into Excel and doing your own before and after comparisons.

The profiler works at the VI level, meaning it is a little coarse, but since it is pretty easy to make subVI from selection, it is usually good enough to get you in the ballpark of the hotspot, and if not, you can introduce new profile VIs easily. Similarly, you can comment out code using the Diagram Disable structure to surround code.

Note:
The profiler only records and reports complete VI runs. If a VI was already running when the profiler was started, its time will not be in the report. For the complete picture, start the profile before you profile what you care about. If you know that you are calling into the subVIs where the hotspot likely is, you can Start mid-application and hit the snapshot button to see intermediates. This is very useful for ad hoc measurements, but be careful to remember what you aren't profiling by doing this.

Let me know what else is confusing. Hope this helps.
Greg McKaskle
Closed Thread


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
[FTC]: Slow Down Max Speed!! JohnFogarty FIRST Tech Challenge 10 16-11-2009 13:24
IR Sensor: Does Slow Loop Polling Work. de_ Programming 2 07-02-2008 23:49
Slow down teh motors! brennerator Programming 21 18-01-2007 23:30
What does your camera do? Qbranch General Forum 23 22-04-2006 02:26
Cheapest and easiest way to slow down a motor sanddrag Technical Discussion 41 21-12-2005 07:26


All times are GMT -5. The time now is 03:43.

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