View Single Post
  #15   Spotlight this post!  
Unread 31-12-2013, 00:56
HeatherEmc2's Avatar
HeatherEmc2 HeatherEmc2 is offline
Registered User
FRC #3504
Team Role: Programmer
 
Join Date: Dec 2013
Rookie Year: 2011
Location: Pittsburgh
Posts: 5
HeatherEmc2 is an unknown quantity at this point
Re: Running Smartdashboard without cRIO/robot?

Thanks Joe,
That worked.
I'm still getting that exception when I run my code though. Here's what the code looks like:
Code:
import edu.wpi.first.wpilibj.networktables.NetworkTable;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;

public class NetworkingOne {

    public static void main(String[] args) {
        SmartDashboard.putNumber("set value", 0);
        double num = SmartDashboard.getNumber("set value");
        NetworkTable.getTable("share").putNumber("share value", num);
    }
}
I know SmartDashboard.putNumber is really putting a number to a NetworkTable called SmartDashboard so could it be that thats using the crio ip and not the NetworkTable server that's running?
Reply With Quote