Go to Post I'm sure you can come up with something, with a bit of warped thought! ... and if not, warped thinking is what your team's Engineers are for! :) - kmcclary [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 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
  #2   Spotlight this post!  
Unread 10-01-2015, 17:07
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Sending packets to the roboRIO from a LabVIEW dashboard

You can put the name resolution in a loop that runs at the beginning of the program until it gets a proper address, then never runs again. That should keep the five-second freeze from affecting normal operation of the Dashboard.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2015, 17:53
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,809
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Sending packets to the roboRIO from a LabVIEW dashboard

Are you using any part of the default dashboard that already resolves the robot IP address, available from Dash Get Data, used for Network Tables and other robot to Dashboard communications?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 20:12.

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