View Single Post
  #1   Spotlight this post!  
Unread 01-28-2016, 07:47 PM
sebastian.m.842 sebastian.m.842 is offline
Registered User
FRC #0842
 
Join Date: Jan 2016
Location: Arizona
Posts: 2
sebastian.m.842 is on a distinguished road
NetworkTable Problem

I am trying to putString to a NetworkTable and or the SmartDashBoard but every time I run the code it doesn't display anything to the SmartDashBoard. Any suggestions on how to make this work so we can see the tables on the SmartDashBoard?

Here is my code

Code:
public class Robot extends IterativeRobot {

	public static final ExampleSubsystem exampleSubsystem = new ExampleSubsystem();
	public static OI oi;
	NetworkTable contourReport;
    
    public Robot()
    {
    	contourReport = NetworkTable.getTable("GRIP/myContoursReport");
    }
    
    public void testPeriodic() {
        LiveWindow.run();
        SmartDashboard.putString("Hello", "World");
        contourReport.putString("Hello", "World");
    }
    
    public void testInit()
    {
    	
    }
}
Reply With Quote