Go to Post I want to see the [game] animation robot with the plunger to pick up balls and the boots that spin to kick them. Could you do that please. It would be very awesome. :D - the man [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 13-01-2017, 22:31
lobrien lobrien is offline
Registered User
FRC #3880
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Kailua Kona, Hawaii
Posts: 7
lobrien is an unknown quantity at this point
RoboRio w. LabView + daughterboard: configuring NetworkTables?

How do you configure LabVIEW on the robot to communicate via NetworkTables with a daughterboard also on the robot?

The main drive team is using LabVIEW to program our robot. We are working on Computer Vision using python on a daughterboard (Jetson, hopefully). Our challenge is that to control the servos on the targeting subsystem, our understanding is that we cannot do that with GPIO/I2C from the Jetson but need to go back through the main PD board, which is controlled by the RoboRio.

OK, so the hope is to use NetworkTables for communication. We have pynetworktables up and running and we can communicate between a Python client and a Python server. I know _ZERO_ about LabVIEW.

Which is the NetworkTables server? The RoboRIO or the daughterboard?

One way or the other, how do we configure LabVIEW to use NetworkTables? If it's the server, how do we access tables and key-values being manipulated by the daughterboard? If it's the client, we additionally need to know how to set the IP address of the server running on the daughterboard.

Thanks in advance!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2017, 00:07
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,086
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: RoboRio w. LabView + daughterboard: configuring NetworkTables?

The Robot is the server. LabVIEW has a networktables library, though I don't know how it works. Search the forums and I'm sure you'll find some answers.

The RobotPy documentation site has some language-agnostic docs explaining networktables that you might be interested in: http://robotpy.readthedocs.io/en/stable/guide/nt.html
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2017, 01:05
Jonathan L. Jonathan L. is offline
Programmer alumnus, mentor, and CSA
FRC #1094 (Channel Cats)
 
Join Date: Jan 2013
Rookie Year: 2011
Location: St. Louis MO
Posts: 79
Jonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the roughJonathan L. is a jewel in the rough
Re: RoboRio w. LabView + daughterboard: configuring NetworkTables?

The attached shows how to Write or Read a Network Table Variable in LabVIEW from the roboRIO or Dashboard code.

A list of active Network Table Variables is displayed on the LabVIEW Dashboard by default.

Quote:
Originally Posted by lobrien View Post
Our challenge is that to control the servos on the targeting subsystem, our understanding is that we cannot do that with GPIO/I2C from the Jetson but need to go back through the main PD board, which is controlled by the RoboRio.
The Power Distribution Panel is only a sensor of current; it is NOT controlled by anything. To use a motor you must use a motor controller. Or to use a servo (at least a normal one) you connect it to a PWM port on the roboRIO.

R73 restricts actuators from being controlled by anything else than the roboRIO as you said.
Attached Thumbnails
Click image for larger version

Name:	Network Table Variables.png
Views:	28
Size:	27.4 KB
ID:	21534  

Last edited by Jonathan L. : 14-01-2017 at 01:13.
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 23:52.

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