View Single Post
  #4   Spotlight this post!  
Unread 19-05-2016, 11:28
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,043
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: Can't put data or get data from network table using pynetworktables

Quote:
Originally Posted by dithier View Post
Yes, that is the robot ip address that we are trying to connect to. We have also tried roborio-501.local with no success. Our code looks identical to the trouble shooting guide and we have been using WPI's TableViewer, and it appears that nothing is being transmitted.

I'm not sure if a connection is being made. I enabled logging, but when I run the program in spyder there are no logging messages appearing in the IPython console. Is there somewhere else I'm supposed to be looking for logging messages? If not, the docs say that if this happens there's still a problem. What should I do next?

Thanks!
Does the table viewer connect successfully? (eg, it can see changes in NT on the robot?). If not, there's probably a networking issue of some kind.

The log messages should show up in the console. If they don't show up, then it's not connecting. One experiment you can do is you can tell tableviewer to be a server, and tell pynetworktables to connect to localhost... that should work, and you'll see the appropriate log messages.

10.xx.xx.11 is a strange IP for the roborio.
__________________
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