Go to Post Kickoff features the joys of discovery. Ship date features the fear of utter failure. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


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 08:40.

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