View Single Post
  #6   Spotlight this post!  
Unread 29-12-2013, 22:01
charr charr is offline
Registered User
FRC #3504
 
Join Date: Aug 2013
Location: Pittsburgh
Posts: 20
charr is an unknown quantity at this point
Re: Running Smartdashboard without cRIO/robot?

Thanks Krieck,
Do you know of any online resources/articles which explain the code you posted? I'm as interested in understanding it as I am in getting it to work.
Thanks,
Chris


Quote:
Originally Posted by krieck View Post
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