Go to Post The true beauty is, no matter what the game (Yes, even 2001), we spend these 6 weeks going crazy with design strategy, and trying to figure out a way to work the plot twists that the GDC throws at us...and its a blast. - Andy Grady [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 28-01-2016, 06:13
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 170
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
New to LabView NT tables

We are new to using LabView NT tables and are having problems getting them to work. We see how they are used in the default code when you start a new project, eg. the autonomous selector drop-down list box. We tried replicating the format in order to send values from the RoboRio to the DS without luck. We put an NT_Write in the RoboRio code and an NT_Read in the DS code. Both were named with the same identifier string. Nothing. Do we need to initialize them somewhere?

We are running the RoboRio code 'off the PC' and are not doing a full deploy and 'set as startup' etc - not sure if that would be the issue.
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2016, 11:18
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,752
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: New to LabView NT tables

You do not need to deploy. But you do need to run the driver station because it will find both the robot and dashboard and tells the dashboard which robot to connect to. This is primarily to allow simulation to work seamlessly.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2016, 11:29
aeastet aeastet is offline
Programming Mentor
AKA: Tim Easterling
FRC #6043 (Allegan Tigers Robotics)
Team Role: Coach
 
Join Date: Jan 2015
Rookie Year: 2011
Location: Holland, MI
Posts: 123
aeastet is an unknown quantity at this point
Re: New to LabView NT tables

Hi Greg,

I have a question about this new process. Since this is all done with network tables now can i do the following?

I want to put my video processing on a small computer and run a LabVIEW exe that only does the vision stuff. Can I use the NT VI's to send data to and from the desk top using the same structures since it will still be on the same network?

I am guessing that it would work but I haven't gotten to that point yet int he code. We may or may not need to do this offload of vision processing but I just want to have a good feeling about what we are doing. I know how to make the network stuff go without the NT server but if all i need to do is create the read and write the same way that we do for communicating between the RoboRio and the Dashboard then that is one less thing I need to work on.

Thanks for your help,

Tim
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2016, 10:04
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,752
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: New to LabView NT tables

Again, the thing that the the vision app would need is the IP address of the robot. This is a parameter to the NT Client or Bind function. If all laptops have names and they can participate in mDNS or a DNS server is present, use the names and things should just work. It can also be solved by using more static IP settings.

But if you know the robot IP, a LV app can just join in and share data by using the NT VIs.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 29-01-2016, 10:10
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 170
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: New to LabView NT tables

Quote:
Originally Posted by Greg McKaskle View Post
Again, the thing that the the vision app would need is the IP address of the robot. This is a parameter to the NT Client or Bind function. If all laptops have names and they can participate in mDNS or a DNS server is present, use the names and things should just work. It can also be solved by using more static IP settings.

But if you know the robot IP, a LV app can just join in and share data by using the NT VIs.

Greg McKaskle
Speaking of robot IP this year, it seems that the RoboRio is on DHCP and gets an IP from the WiFi router. In past years that was always a fixed IP. is that going to be an issue when we connect to FMS? Is there a way to simulate the FMS at home?
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2016, 10:12
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,752
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: New to LabView NT tables

This is similar to how it was recommended to work last year. The FMS also runs a DHCP server, so the way the radio is programmed is intended to mimic how the field will work.

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 20:25.

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