Go to Post Woody, If there is any chance your reading this ... you've changed my life. - Gope [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 20-01-2016, 19:15
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 502
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Transferring data from RoboRealm to LabVIEW

Hello!

Our team is implementing vision for the first time this year. We are using RoboRealm, and are able to detect the openings on the tower already. Our RoboRealm set-up finds two openings, their centers-of-gravity (each one), and stores them as variables. Then, we use a Network Table to send it. This is our network table set up:
Click image for larger version

Name:	Capture.PNG
Views:	72
Size:	27.0 KB
ID:	19833

However, we aren't sure how to set up the LabVIEW side to actually receive and utilize the variables. Where should we start to receive these variables, and make adjustments based on them?

Thanks for the help!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2016, 20: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: Transferring data from RoboRealm to LabVIEW

The LV implementation implements the same Network Tables or SmartDashboard protocol as everyone else. So once you get RoboRealm to connect to the server running on the robot, the variables should show up on the robot and in the dashboard. I am not sure if RoboRealm support putting a device name in the address field, but that would are ideal -- that would mean putting a roboRIO-team-FRC.local. If that doesn't work, you can find the IP address of the roboRIO and type that into the address field. But that is not going to be ideal for the official matches.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2016, 22:11
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 502
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Transferring data from RoboRealm to LabVIEW

Does the connection have to go through Smart Dashboard? If so, where could I get it?

Also, in what library would one find the Network Tables/Smart Dashboard Protocols?

Thanks a bunch!
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2016, 08:06
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: Transferring data from RoboRealm to LabVIEW

LV can communicate in many many ways, but you have to find one in common with RoboRealm and one that works on the field. If you find documentation that explains how to do lower level UDP, TCP sockets, or other from RoboRealm, then those are options. But the Network Tables protocol was built specifically for communicating to the robot from other clients such as the SmartDashboard. I'm pretty sure it works as long as the connection can be established by IP number or name.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2016, 08:23
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 502
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Transferring data from RoboRealm to LabVIEW

Quote:
Originally Posted by Greg McKaskle View Post
But the Network Tables protocol was built specifically for communicating to the robot from other clients such as the SmartDashboard. I'm pretty sure it works as long as the connection can be established by IP number or name.
Greg McKaskle
What I am understanding is that roboRealm sends the data to the dashboard, and then the dashboard can send it to the roboRIO.

I think I understand how to get the data from the Dash to the roboRIO, but I'm still not sure how to connect the data from RoboRealm to the Dashboard.

Thanks for the help.

Last edited by Hitchhiker 42 : 21-01-2016 at 14:17.
Reply With Quote
  #6   Spotlight this post!  
Unread 24-01-2016, 10:40
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: Transferring data from RoboRealm to LabVIEW

That understanding is close, but let me adjust it.

Network tables is a shared table of named values. The REAL values exist on the robot, which is called the server. Other code, on the dashboard, in RoboRealm, on other coprocessor cards, etc. can act as clients and can use the network table functions to read and write to those values.

The clients and server constantly send messages to each other to get in synch. You can read the documentation if you have curiosity about how it works, and of course you have the code, but it is a bit complicated. For most situations, you can simply trust that as long as your client is connected, that it has the same values as everyone else and can change any value at anytime and the others will get is almost instantly.

Greg McKaskle
Reply With Quote
  #7   Spotlight this post!  
Unread 25-01-2016, 19:28
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Transferring data from RoboRealm to LabVIEW

On a related note, I've been having trouble getting Network Tables to actually work at all with RoboRealm.

On the documentation, it mentions Network Tables 2.0, but I think the one running on the RoboRIO is 3.0, correct?
If this is the case, then is RoboRealm incompatible? Or is my problem something else?
__________________
Head Programmer / Driver
Reply With Quote
  #8   Spotlight this post!  
Unread 26-01-2016, 17:30
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Transferring data from RoboRealm to LabVIEW

Another note:
I kind of got RoboRealm to send a bit of mangled data to the network tables, but it's nothing usable. Also, when it connects, the Driver Station starts spewing errors such as this one:



Makes me fear that RoboRealm is just completely incompatible with this year's control system.
__________________
Head Programmer / Driver
Reply With Quote
  #9   Spotlight this post!  
Unread 26-01-2016, 21:33
Hitchhiker 42's Avatar
Hitchhiker 42 Hitchhiker 42 is offline
Roboter
AKA: Mark Lavrentyev
FRC #4557 (FullMetal Falcons)
Team Role: Programmer
 
Join Date: Oct 2015
Rookie Year: 2015
Location: Cromwell, CT
Posts: 502
Hitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to beholdHitchhiker 42 is a splendid one to behold
Re: Transferring data from RoboRealm to LabVIEW

I've been having similar problems where I get these errors (same ones) and garbage data.

EDIT: Due to this, we've decided to reformat our work into Vision Assistant, and go from there.
__________________



2016 - NE District Championship Entrepreneurship Award
2016 - Hartford District Industrial Design Award
2016 - Waterbury District Engineering Inspiration Award
Reply With Quote
  #10   Spotlight this post!  
Unread 26-01-2016, 21:36
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: Transferring data from RoboRealm to LabVIEW

This is not your problem. Not a problem caused by anything you did.

I wasn't aware that RoboRealm was still using 2.0. We are looking to see if it can be updated.

Greg McKaskle
Reply With Quote
  #11   Spotlight this post!  
Unread 06-02-2016, 21:01
blturner blturner is offline
Registered User
FRC #5013 (Trobots)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2006
Location: Kansas City
Posts: 27
blturner is on a distinguished road
Re: Transferring data from RoboRealm to LabVIEW

Does "Still using 2.0" mean that we need to stick with TCP and the API?
I read that network tables are the perffered way to do this but I don't know why of if they will work.
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 06:05.

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