Go to Post This is a community that builds people as well as knowledge. - Karibou [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-02-2011, 22:26
mahumnut's Avatar
mahumnut mahumnut is offline
Registered User
FRC #1418 (Vae Victus)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2009
Location: DC area
Posts: 23
mahumnut is an unknown quantity at this point
Location of Image Sending to dashboard/Making labview more efficient

Hello, I was wondering where in the labview code the camera image is actually being sent to the dashboard. I am trying to get rid of it in an attempt to reduce lag that presented itself after I added a 3 step vision processing script to the vision processing vi.

Consequently, I was also wondering if anybody knew any ways to make the labview code run more efficiently. Specifically, after I implemented the vision processing, the images being sent to the classmate would only update every 30 seconds or so and occasionally, the robot would continue to drive for 1-2 seconds after letting go of any controller input.
Any tips on getting rid of this?

I already tried getting rid of the build dashboard data vi and adding a 10 millisecond wait to the main loop and vision processing loop, neither of which really did much.

Thanks!
Reply With Quote
  #2   Spotlight this post!  
Unread 07-02-2011, 07: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,751
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: Location of Image Sending to dashboard/Making labview more efficient

If you turn the button off on the dashboard, the code on the cRIO that sends images will be blocked and will not do any further work. It is possible to remove the code, but that won't make it any more CPU efficient.

As for the performance issues, it may be a good idea to go into detail about what the steps are. Also, since the vision loop runs even when the robot is disabled, this gives you the chance to easily observe what is going on and debug.

It may be good to start with the tutorial on the Getting Started window that leads you through troubleshooting including performance issues. In particular, there is a VI you can drop into the vision loop and into other loops, each with a different string. Each time it is called, it records the elapsed time, and you can open the window to see the timing of various loops. Other options are to use the Performance Profiler.

Greg McKaskle
Reply With Quote
Reply


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


All times are GMT -5. The time now is 09:13.

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