Go to Post Our team has a forum..... chiefdelphi.com Ok I had to say it. - Mike Martus [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-07-2014, 04:49 PM
Stuart Hunt Stuart Hunt is offline
Registered User
FRC #5160
 
Join Date: Feb 2014
Location: United States
Posts: 13
Stuart Hunt is an unknown quantity at this point
Smart Dashboard

Hi,
We are a rookie team this year (2014) with a brand new cRIO. We are having troubles connecting it to the smart dashboard though.
We can download code wirelessly to the robot just fine, we can connect to it via the dashboard application, and the smart dashboard application can even connect to the camera, but the smart dashboard cannot connect to the robot itself. I was told that it was a common problem and that I should just call National Instruments to get it fixed, but they claimed they had never heard of the smart dashboard application before.
Any ideas how I fix this?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-08-2014, 07:03 AM
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 102
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Smart Dashboard

From what you are saying, it sounds like you are able to get the Java SmartDashboard running, but all you are seeing is the simple Gray window with the File and View options, but none of the information broadcast by your robot.

Here are some things to try:

Select the Preferences option from the File menu and verify that your Team Number is entered correctly.

Temporarily disable your laptop's firewall settings and/or anti-virus program and then restart the smart dashboard to see if your security settings were blocking the smart dashboard.

Make sure the code you have that puts values to the smart dashboard is being reached.

Can you create a project using the SimpleRobotTemplate that does nothing more than displaying a count to the smart dashboard when you run either autonomous or teleop?

Something along the lines of:

Code:
package edu.wpi.first.wpilibj.templates;

import edu.wpi.first.wpilibj.SimpleRobot;

public class RobotTemplate extends SimpleRobot {

    private int autonCnt = 0;
    private int teleopCnt = 0;

    /**
     * This function is called once each time the robot enters autonomous mode.
     */
    public void autonomous() {
      SmartDashboard.putNumber("Auton Run", autonCnt++);        
    }

    /**
     * This function is called once each time the robot enters operator control.
     */
    public void operatorControl() {
      SmartDashboard.putNumber("Teleop Run", teleopCnt++);
    }
    
    /**
     * This function is called once each time the robot enters test mode.
     */
    public void test() {
    
    }
}
When you deploy and run the above program, you should see two values appear on the smart dashboard after you run both autonomous and teleop from the driver station. The values should increment each additional time you run autonomous and teleop.

Hope that helps,
Paul
Reply With Quote
  #3   Spotlight this post!  
Unread 02-09-2014, 12:21 AM
sailorjoe sailorjoe is offline
Mentor, RoboEagles, FWHS
AKA: Joe Hafner
FRC #4579 (RoboEagles)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Auburn, WA
Posts: 10
sailorjoe is an unknown quantity at this point
Re: Smart Dashboard

I had very similar symptoms, too. Ultimately, I deleted the SmartDashboard save.yml file, which cleared things up.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-11-2014, 05:10 PM
Stuart Hunt Stuart Hunt is offline
Registered User
FRC #5160
 
Join Date: Feb 2014
Location: United States
Posts: 13
Stuart Hunt is an unknown quantity at this point
Re: Smart Dashboard

Yes, we've tried that sample code and nothing shows up. In addition, we clicked 'View', then 'Robot Connection Indicator', and it shows a red light for it's connection to the robot.
Our team number is inputted correctly.

About the save.yml, we couldn't find that, but we did find a save.xml which we deleted, and had the program re-generate, and it didn't fix anything. After deleting it we re-inputted our team number, and nothing changed.
Reply With Quote
  #5   Spotlight this post!  
Unread 02-12-2014, 06:45 AM
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 102
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: Smart Dashboard

Can you click on the "Setup" tab on the driver station and verify that:
  • The team number matches what you have set in the smart dashboard.
  • The "Local Dashboard" option is selected.
  • That Java is selected.

If that looks OK, can you try temporarily disabling your firewall and re-starting the driver station and smart dashboard.

Finally, if you have another laptop you can connect to the robot, can you try running just the Smart Dashboard from there? To run the smart dashboard by itself, locate the "sunspotfrcsdk" folder under your home directory (probably something like: C:\Users\YOUR_LOGIN\sunspotfrcsdk). Look for the tools folder, then double click on the SmartDashboard.jar icon.
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 07:42 AM.

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