View Single Post
  #4   Spotlight this post!  
Unread 27-12-2013, 21:21
krieck's Avatar
krieck krieck is offline
Registered User
AKA: Keith
FRC #2846 (Firebears)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Minnesota
Posts: 49
krieck is an unknown quantity at this point
Re: Running Smartdashboard without cRIO/robot?

Creating a NetworkTables server is very easy. Having a stand-alone server will let you develop SmartDashboard and sensor processing apps without the cRIO:

Code:
import edu.wpi.first.wpilibj.networktables.NetworkTable;

/**
 * Server for running Network tables.
 * You must add the networktables-desktop.jar file to your classpath.
 */
public class NetworkTableServer {

    public static void main(String[] args) throws Exception {
        NetworkTable.setServerMode();
        NetworkTable.getTable("");

        Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
        while (true) {
            Thread.sleep(100L);
        }
    }

}
Reply With Quote