Go to Post Aaaah - interpersonal dynamics - the root of most problems on most teams. - UCGL_Guy [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
  #3   Spotlight this post!  
Unread 27-12-2013, 15:24
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Running Smartdashboard without cRIO/robot?

There is a completely new version of SmartDashboard coming out this year, based on JavaFX. Everything below is based on the old SmartDashboard, but probably also applies to SmartDashboard 2.0 (or SmartDashboardFX, not sure what the correct name is).

You can start up Smartdashboard and have it connect to a different ip address by specifying it on the command line. For example: java -jar smartdashboard.jar 127.0.0.1

The robot normally functions as a Network Tables server, so you need a replacement server. Network Tables is the network library that SmartDashboard uses. You should be able to use the files in sunspotfrcsdk\desktop-lib to make a java program that runs a network tables server, although I've never done it. There are instructions for making a client program here: http://wpilib.screenstepslive.com/s/...client-pc-side You would have to extend them to make a server.

If you have LabVIEW, it's really easy to make a Network Tables server, just drop the NT Server Vi on a new VI, and run.

The 2014 beta java software contains a tool called Outline Viewer. It can operate as either a client or a server and lets you view and manipulate Network Tables variables.

Quote:
Originally Posted by otherguy View Post
I've never tried myself, but you should be able to pull out the SmartDashboard and NetworkTable classes from wpilib.

The source code is included in the sunspotfrcsdk folder if you have installed the FRC java plugins from 2013. Sources are zipped here on a windows machine:
Code:
%HOMEPATH%\sunspotfrcsdk\lib\wpilibj.src.zip
They should be located at the following locations respectively:
edu/wpi/first/wpilibj/smartdashboard
edu/wpi/first/wpilibj/networktables/

Alternatively, you could just include the whole wpilib jar file in your java desktop application. The following should get you everything you need:
Code:
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
This uses Java ME networking, you need to use the desktop version I posted above.

Last edited by Joe Ross : 27-12-2013 at 15:27.
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 12:18.

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