View Single Post
  #5   Spotlight this post!  
Unread 18-02-2016, 16:16
StaleyRobotics StaleyRobotics is offline
Registered User
FRC #4959
 
Join Date: Feb 2016
Location: Kansas City, MO
Posts: 3
StaleyRobotics is an unknown quantity at this point
Re: Network tables has already been initialized

This is some basic code we have been trying. We are still getting the same error. Any time we try to access the NetworkTables class we receive the error.

Code:
NetworkTable server;
	
	public Vision() {
		server = NetworkTable.getTable("SmartDashboard");
	}
	
	public void printImageCount() {
		try {
			double imageCount = server.getNumber("IMAGE_COUNT", 0.0);
			
			System.out.println(imageCount);
		}
		catch(TableKeyNotDefinedException exp) {
		}
	}
Reply With Quote