View Single Post
  #6   Spotlight this post!  
Unread 01-02-2016, 21:31
dszlucha dszlucha is offline
Registered User
FRC #1518 (Raider Robotics)
Team Role: Mentor
 
Join Date: Oct 2015
Rookie Year: 2016
Location: Rochester, NY
Posts: 12
dszlucha is an unknown quantity at this point
Re: Network Table Viewer / GRIP issue

I'm trying to mock up some code to read the Network Table using the "desktop" package of networktables.jar, e.g., NetworkTables-3.0.0-20151121.170557-4-desktop-development.jar but I am not able to read values from the table. I'm running the Outline Viewer and can see the values there, but not in my own code.

NetworkTable table = NetworkTable.getTable("/GRIP/myContoursReport");
System.out.println(table.containsKey("area"));

Output:
platform: /Mac OS X/x86_64/
false

Is there anything special I need to do in my client code to initialize NetworkTable?

Thanks!

David