Go to Post Finally I wish everyone here on ChiefDelphi good luck and more importantly a fun build season. - mechanicalbrain [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 25-01-2013, 18:00
Nathan Powell's Avatar
Nathan Powell Nathan Powell is offline
The Prime Function
FRC #2582 (PantherBots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Lufkin, TX
Posts: 37
Nathan Powell is an unknown quantity at this point
Smartdashboard connection error

I have downloaded the SmartDashboard for the Driver Station. When the DS is set to C++, the SmartDashboard opens up automatically as normal. However, even when the DS has connection to the robot, the SmartDashboard does not receive the connection. I have looked at the guides on the FIRST website, but have failed to find an answer. Can anyone offer assistance?
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2013, 18:34
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Smartdashboard connection error

Can you confirm that the team number is set correctly in the SmartDashboard preferences? You can find the preferences on the File menu, then click Preferences.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2013, 18:41
Nathan Powell's Avatar
Nathan Powell Nathan Powell is offline
The Prime Function
FRC #2582 (PantherBots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Lufkin, TX
Posts: 37
Nathan Powell is an unknown quantity at this point
Re: Smartdashboard connection error

It's funny you mention that--I discovered that we did put the team number in wrong before making this thread. But yes, the team number is correct. That allowed the SD to come up automatically when the DS was set on "C++".
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2013, 18:47
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 588
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Smartdashboard connection error

So when you say that the SmartDashboard doesn't "receive the connection", what exactly do you mean? Are you sending values but they aren't showing up?

Maybe you could try running it manually from a command line to see if there are any exceptions or error messages coming out of the SmartDashboard. Use cmd.exe in windows and type the command:

java -jar smartdashboard.jar

will run it. Let us know what you see.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2013, 19:01
Nathan Powell's Avatar
Nathan Powell Nathan Powell is offline
The Prime Function
FRC #2582 (PantherBots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Lufkin, TX
Posts: 37
Nathan Powell is an unknown quantity at this point
Re: Smartdashboard connection error

Forgive me, I was not clear. I meant by "not receiving the connection" that the connection indicator on the SD is red even when the DS is connected the the robot. No widgets appear on the screen (we currently have one potentiometer, a victor, a talon, and a gearbox attached). And when I put your command in the cmd.exe, it responded:

Error: Unable to access jarfile smartdashboard.jar

Perhaps I did not install it correctly, and left out some files?
Reply With Quote
  #6   Spotlight this post!  
Unread 28-01-2013, 20:24
Nathan Powell's Avatar
Nathan Powell Nathan Powell is offline
The Prime Function
FRC #2582 (PantherBots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Lufkin, TX
Posts: 37
Nathan Powell is an unknown quantity at this point
Re: Smartdashboard connection error

I tried reinstalling the driver station, but with no success. The smartdashboard comes up when i bring up the DS, but it does not receive any connection from the cRIO. Has anyone else found this problem, or is it an isolated case?
Reply With Quote
  #7   Spotlight this post!  
Unread 28-01-2013, 23:06
virtuald's Avatar
virtuald virtuald is online now
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,055
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Smartdashboard connection error

The SD works fine for me. Are you actually sending values to the SD? Nothing will show up unless you do... *including* the connection, as it isn't initialized by default.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #8   Spotlight this post!  
Unread 28-01-2013, 23:49
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,562
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: Smartdashboard connection error

Quote:
Originally Posted by Nathan Powell View Post
And when I put your command in the cmd.exe, it responded:

Error: Unable to access jarfile smartdashboard.jar
You need to navigate to the directory where the smartdashboard.jar is located before running it.
Reply With Quote
  #9   Spotlight this post!  
Unread 29-01-2013, 19:37
Nathan Powell's Avatar
Nathan Powell Nathan Powell is offline
The Prime Function
FRC #2582 (PantherBots)
Team Role: Alumni
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Lufkin, TX
Posts: 37
Nathan Powell is an unknown quantity at this point
Re: Smartdashboard connection error

Check that--the SD just connected to the robot. the Connection indicator is green now. I used a code I found (and modified slightly) from a 2011 thread on the SmartDashboard.

Code:
double value = 42.85
SmartDashboard::init();
SmartDashboard:PutNumber("Stuff!", value)
I guess the code, not the SmartDashboard itself, was the issue. Huh. I ws sure we checked it before uploading...ah well. Live and learn. Thanks to everyone who offered their advice!
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 18:20.

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