Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Making a Custom Dashboard For Java (http://www.chiefdelphi.com/forums/showthread.php?t=126269)

mbshark 11-02-2014 18:49

Making a Custom Dashboard For Java
 
I was wondering how (if it's possible) to use a custom dashboard - the one created in Labview which you copy under the C:\Program Files\FRC Dashboard directory and run under default (is any of this wrong?) - while using java. We have some variables in Java (things like ultrasonic sensor output) that we want to use with the default dashboard (because its enhanced UI over the Java SmartDashboard). How can we link these variables to sliders or other UI elements on the default dashboard? Is is as simple as using the putString/putData method or is it more complicated?

Thanks in advance for the help.

mbshark 20-02-2014 21:37

Re: Making a Custom Dashboard For Java
 
Still wondering how I would be able to do this :confused:

nickmcski 21-02-2014 01:18

Making a Custom Dashboard For Java
 
Try using smart dashboard sfx, it gives you a lot more options on customizing your dashboard http://wpilib.screenstepslive.com/s/...tdashboard-sfx

RufflesRidge 21-02-2014 07:36

Re: Making a Custom Dashboard For Java
 
Sure! The SmartDashboard calls are language compatible (though note that Test mode is not). In your robot code use SmartDashboard.putBool or putNumber or whatever is appropriate.

Then in LabVIEW create a new Dashboard project from the template and add the indicators or controls to the Operation tab with the same name as the key name you used on the robot. Alternately, put them on whatever tab you like and use the SmartDashboard VIs from the palette to read data and output it to indicators or to write data from controls.

fovea1959 21-02-2014 08:03

Re: Making a Custom Dashboard For Java
 
Ruffles: how is test mode not compatible?

Joe Ross 21-02-2014 12:07

Re: Making a Custom Dashboard For Java
 
Quote:

Originally Posted by fovea1959 (Post 1347390)
Ruffles: how is test mode not compatible?

They use different NetworkTables naming. There's no reason that someone couldn't make a LabVIEW dashboard control a Java/C++ robot in test mode, just that the default LabVIEW dashboard won't (and vice versa).

fovea1959 22-02-2014 17:56

Re: Making a Custom Dashboard For Java
 
Joe: thanks. didn't understand it was a cross-language incompatibility....


All times are GMT -5. The time now is 11:02.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi