View Single Post
  #1   Spotlight this post!  
Unread 06-05-2013, 16:11
Hypnotoad's Avatar
Hypnotoad Hypnotoad is offline
Junior Assistant Secretary of Moon
no team
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: California
Posts: 114
Hypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these partsHypnotoad is infamous around these parts
NetworkTables issues.

Hello. I am attempting to use networkTables on the robot. Unfortunately, I am getting the same error over and over:
java.lang.IllegalStateException: Network tables has already been initialized.

Does anyone know why this may be happpening.

I strip the code down to the barebones.

The code is below:

public class RobotTemplate extends IterativeRobot {
NetworkTable table;

public void robotInit() {
NetworkTable.setServerMode();
NetworkTable.setIPAddress("10.6.96.2");
table = NetworkTable.getTable("XYTable");
}
public void autonomousPeriodic() {
}
public void teleopPeriodic() {
table.putNumber("X", 3);
table.putNumber("Y", 4);
}
public void testPeriodic() {
}
}
__________________
The following sentence is true.
The preceding sentence is false.
This sentence is false.
This signature is false.
My teeth are false.
Reply With Quote