View Single Post
  #1   Spotlight this post!  
Unread 09-01-2015, 18:48
randantor randantor is offline
Registered User
AKA: James Y
FRC #0624 (CRyptonite)
Team Role: Alumni
 
Join Date: Jun 2013
Rookie Year: 2012
Location: Katy, TX
Posts: 48
randantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of lightrandantor is a glorious beacon of light
Sending packets to the roboRIO from a LabVIEW dashboard

We are sending data via UDP to the roboRIO from our labview dashboard. In order to do that, we need to retrieve the robot IP address to send to.

Using the "String to IP" function to resolve roborio-624.local causes all pending network operations to freeze for about 5 seconds, even with timeouts set, which is affecting both our custom data receiver and the WPI_DashboardGetInfo.vi receive loop , effectively freezing the dashboard.

Alternatively, we can read the IP address from the "Robot IP" control written by WPI_DashboardGetInfo, but sometimes this control does not get set when the dashboard is started as a separate program after the driver station is. Looking at this code, it seems to be waiting for a TCP connection from the driver station program that never happens until the driver station is restarted.

I'd rather not have to assign a static IP to the roboRIO, because it's just another configuration step we'd have to remember if we ever needed to replace the roboRIO at a competition.

Are there any alternatives for finding the correct DHCP IP for the roboRIO?
Reply With Quote