Go to Post Learn the ideas, look up the formulas. The other way round will drive you mad - Joe Johnson [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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
  #2   Spotlight this post!  
Unread 20-01-2010, 09:46
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,748
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: Some Camera Benchmarks

The profiling numbers you show look suspect. I'm not saying they are wrong, but I'm saying that it would be good to verify them before making code changes.

Not having access to the code, I can't really do this independently, but I can hopefully ask some useful questions.

Are all of the timings you show above measured sequentially in the same task/thread? If they are in multiple tasks, it is easy for the OS to swap and double count an operation. In more detail, the OS commonly swaps for I/O tasks where a buffer or service may be busy. So if you measure time A, start I/O A, then the OS swaps and you measure initial time B, start I/O B, and at some point measure final time B, then the OS swaps back to measure final time A. This overlap of I/O and overlap of the A and B time intervals is very misleading as the A time includes the B time. Especially when measuring times via deltas, this can lead you to draw incorrect conclusions.

From your description, last year your images were less than 3K in size. That sounds like a pretty compressed 160x120. The sample code this year defaults to a medium sized image with low compression. This was to avoid heavy JPEG artifacts that blur the edges of the circles, and small images with big pixels also blur. You may want to look at the buffer size being written, or at the buffer size being received at the dashboard. You can also set the camera differently if you aren't intending to do cRIO processing for the target and see how the timings are affected by the image size.

Finally, you may want to look at overall cRIO processor usage. For a standard unix system, ps or tops or a similar tool will give an indication of overall CPU usage that is pretty trustworthy. For vxWorks, I believe that typing i at the terminal will give you a report with some CPU usage. I don't have one in front of me, so that may not be the command, or there may be a better one. Anyway, this can serve as a second indicator.

Finally, you may want to instrument the dashboard to see how many images you are receiving -- something like an fps number. This will give feedback not on cRIO load, but on frames being transmitted. Another parameter which may be different in the sample code than in what you used last year is the actual camera FPS setting. The LV sample code set it to 15 assuming that was fast enough for tracking. If you are processing on the cRIO, you may want to turn it up, especially if you use the small image size.

Greg McKaskle
Reply With Quote
 


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
<G14> - ya win some, ya lose some GaryVoshol Rules/Strategy 62 24-03-2009 16:22
Some Questions ggberg Rules/Strategy 8 09-01-2008 16:51
Tell the difference: 2007 CMU Camera, 2006, 2005 camera? Chris_Elston Programming 2 07-01-2008 13:11
Camera Help (New to Camera Programming) Idaman323 Programming 6 14-01-2006 03:56


All times are GMT -5. The time now is 12:19.

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