Go to Post Thinking can be uncomfortable, but I always think that it is beneficial. - JaneYoung [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

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 11-02-2014, 18:49
mbshark's Avatar
mbshark mbshark is offline
Registered User
AKA: Myles Byrne
FRC #3932 (The Dirty Mechanics)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Boca Raton, FL, USA
Posts: 34
mbshark is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 20-02-2014, 21:37
mbshark's Avatar
mbshark mbshark is offline
Registered User
AKA: Myles Byrne
FRC #3932 (The Dirty Mechanics)
Team Role: Leadership
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Boca Raton, FL, USA
Posts: 34
mbshark is an unknown quantity at this point
Question Re: Making a Custom Dashboard For Java

Still wondering how I would be able to do this
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2014, 01:18
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 107
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
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
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2014, 07:36
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2014, 08:03
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Making a Custom Dashboard For Java

Ruffles: how is test mode not compatible?
Reply With Quote
  #6   Spotlight this post!  
Unread 21-02-2014, 12:07
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,561
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: Making a Custom Dashboard For Java

Quote:
Originally Posted by fovea1959 View Post
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).
Reply With Quote
  #7   Spotlight this post!  
Unread 22-02-2014, 17:56
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 330
fovea1959 will become famous soon enough
Re: Making a Custom Dashboard For Java

Joe: thanks. didn't understand it was a cross-language incompatibility....
Reply With Quote
Reply


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 11:02.

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