Go to Post In 2012, we built our best machine ever. Some visitors to our pit were visibly disappointed to find that our machine was a pile of extruded aluminum and urethane belting, just cleverly arranged and programmed. - OZ_341 [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 27-01-2013, 11:36
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 327
fovea1959 will become famous soon enough
2013 Vision on DS

we're looking at doing vision for the first time, probably on the driver's station.

I know in years past, people have done it in the dashboard, then UDPd information back to the cRIO, or otherwise done custom communications (I'm not sure of the details yet)...

But now we have NetTables: would this be an easier way to get the information from the vision processing in the dashboard back to the cRIO, or is there a downside to this?
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2013, 11:45
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: 2013 Vision on DS

UDP is still an option, but you are correct, Network Tables, which is really the same as SmartDashboard, are built in.

I'd encourage you to work through the tutorial on customizing the dashboard and post any questions.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2013, 11:50
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 327
fovea1959 will become famous soon enough
Re: 2013 Vision on DS

thanks. I've fiddled with the customization already, and have read the postings (many from you) on doing the processing in dashboard and reusing the image that is already there, so I'm comfortable there.

I am a little concerned about some apparent latency in the Network Tables, hence the question about using that vs UDP...
Reply With Quote
  #4   Spotlight this post!  
Unread 27-01-2013, 11:57
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: 2013 Vision on DS

Good question. I've been waiting for someone to ask about that.

The SmartDashboard Server VI that is started in Robot Main and the SmartDashboard Client and Binding VI that is started in the Dashboard Main both support a parameter called Update Time. By default this is 100ms. That means that every 100ms, the code will notify the other side about any locally changed variables. The primary purpose is to batch the updates to avoid a jillion small TCP transactions. 100ms is relatively fast and low overhead, but you may want to shrink the number if using it for vision processing values.

The other option is to use the Flush Updates VI located in the Network Tables Extra palette. This will allow you to keep the time slower, but force an update whenever you choose, such as when you have aiming data from a processed image.

Let me know if you have any issues using them.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 27-01-2013, 14:48
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 327
fovea1959 will become famous soon enough
Re: 2013 Vision on DS

ooooo! that helps *lots*. Will experiment.
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 04:42.

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