Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Smartdashboard connection error (http://www.chiefdelphi.com/forums/showthread.php?t=112048)

Nathan Powell 25-01-2013 18:00

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?

BradAMiller 25-01-2013 18:34

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

Nathan Powell 25-01-2013 18:41

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++".

BradAMiller 25-01-2013 18:47

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

Nathan Powell 25-01-2013 19:01

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?

Nathan Powell 28-01-2013 20:24

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?

virtuald 28-01-2013 23:06

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.

Joe Ross 28-01-2013 23:49

Re: Smartdashboard connection error
 
Quote:

Originally Posted by Nathan Powell (Post 1221892)
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.

Nathan Powell 29-01-2013 19:37

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!


All times are GMT -5. The time now is 18:20.

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