View Single Post
  #7   Spotlight this post!  
Unread 21-02-2015, 08:05
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Static IP from .2 to .20?

Greg,

I have a question regarding mDNS and the LabVIEW dashboard.

We're trying to send some data from the dash to the robot over a UDP connection. In the past, we've done this using the robot's static IP address and have had no issues. This year, we've not had much success unless we use a workaroung which isn't going to work at competitions.

I'll apologize in advance for not being able to post code or look for minute details as I'm at home today and our team's computers are at the school.

Here is what we've done:

The main strategy is to use the part of the dashboard where it binds the smart dashboard to capture the IP address. In Loop 3 in the case structure where Bind Controls to Smart Dashboard.vi is located, we pull the robot IP address in the TRUE case and store it to a global variable. We use this global variable as the IP address in our UDP loop.

Here's the issue: the global variable that is supposed to contain the IP address comes back as an empty string around 80% of the time. We've been working around the issue by figuring out the IP address manually, but that won't work for competitions. Any suggestions?
__________________
-
An ounce of perception is worth a pound of obscure.