Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   No Robot Code (http://www.chiefdelphi.com/forums/showthread.php?t=143026)

Leif Asher 02-02-2016 11:23

No Robot Code
 
I have successfully imaged the roboRIO and deployed the code, but it says there is no robot code in the DS. I have tried several things I found on the internet, none of which seemed to work. The roboRIO should be fully functional and the programming has been tested and works fine. If anyone has any ideas for a solution, please tell me or redirect me to a helpful thread.

Thanks

*EDIT: I am using LabView*

AustinShalit 02-02-2016 11:29

Re: No Robot Code
 
Are you sure you are deploying the code successfully -- can you post your deploy log? Are there any errors in the error console on the right side of the driver station?

Leif Asher 02-02-2016 11:32

Re: No Robot Code
 
It is sending a successful deployment message and no errors are shown. The DS simply acts as if there is no code being deployed.

Nirnaeth 02-02-2016 11:37

Re: No Robot Code
 
Trouble-shooting questions:

1. Can you go through the steps you took to deploy the code?
2. Is the DS green for "Robot Communications"?
3. Did you right click on "Build Specifications" and click on build?
4. Afterwards, did you deploy the code by clicking on "Run as Startup"?

Leif Asher 02-02-2016 11:42

Re: No Robot Code
 
The communications light is green, in order to deploy I imaged and formatted the roboRIO and then ran the robot main VI, which then went to a deploying loading screen and gave a successful completion message. The robot is not currently configured to run code at startup, and I cannot currently access it at the moment, although later today I will be able to.

AustinShalit 02-02-2016 11:49

Re: No Robot Code
 
Can you try to create a new robot project and try to deploy that with no changes to the default code?

Leif Asher 02-02-2016 11:51

Re: No Robot Code
 
The only change to the default code was a disable structure on the vision segment of robot main and an extra joystick added for tank drive.

Mark McLeod 02-02-2016 12:39

Re: No Robot Code
 
Don't run from robot main for now until you understand how that operates (and doesn't operate).
That only puts code temporarily onto the roboRIO. You can work out what steps you are missing running that way later.

First, put a permanent copy of your code onto the roboRIO using Build and Run as startup as Nirnaeth described and get that working.
Steps are here: http://wpilib.screenstepslive.com/s/...p-test-program
Then whenever you power cycle the robot, or connect and disconnect, you will still have some code running.

Leif Asher 02-02-2016 13:13

Re: No Robot Code
 
Okay, thanks for the help

Leif Asher 02-02-2016 16:52

Re: No Robot Code
 
I have run as startup after building and successfully deployed, but the DS still says no robot code. Occasionally I will get an error,
http://ni.i.lithium.com/t5/image/ser...v=mpbl-1&px=-1
but this does not seem to be obstructing anything and I usually do not get it.
If anyone can help it would be much appreciated.
Thanks.

spat 02-02-2016 17:06

Re: No Robot Code
 
Quote:

Originally Posted by Leif Asher (Post 1534065)
I have run as startup after building and successfully deployed, but the DS still says no robot code. Occasionally I will get an error,
http://ni.i.lithium.com/t5/image/ser...v=mpbl-1&px=-1
but this does not seem to be obstructing anything and I usually do not get it.
If anyone can help it would be much appreciated.
Thanks.

Are you sure you selected roboRIO and not cRIO when creating your project?

EDIT: You can 'simulate' the robot program to check if it crashes before it reports its state to the DS. To do so, check this tutorial: https://decibel.ni.com/content/docs/DOC-26300

Leif Asher 02-02-2016 17:21

Re: No Robot Code
 
Thanks for the help everyone. We got it to work. :D :D

Mark McLeod 02-02-2016 19:09

Re: No Robot Code
 
What turned out to be the fix (for future folks who have the same issue and find this thread on a search)?

CHenry18 03-02-2016 17:08

Re: No Robot Code
 
Hello,
I have re-imaged the Roborio and reset it. I go to upload the code and it says it was successful. Then I go onto the driver station and I get communication but no code. Can you please help me! I'm also a Labview user.

Mark McLeod 03-02-2016 18:10

Re: No Robot Code
 
Did you follow these steps to put your code on the roboRIO permanently?
http://wpilib.screenstepslive.com/s/...p-test-program

G_rupp 03-02-2016 18:38

Re: No Robot Code
 
Quote:

Originally Posted by CHenry18 (Post 1534586)
Hello,
I have re-imaged the Roborio and reset it. I go to upload the code and it says it was successful. Then I go onto the driver station and I get communication but no code. Can you please help me! I'm also a Labview user.

CHenry, are you working tonight. If needed, I can call and discuss this with you tonight or later in the week. One of your mentors has my contact information (Gregg from 1108). PM me through this forum with your contact information.

CHenry18 03-02-2016 18:48

Re: No Robot Code
 
Yes we did all of those steps.

Nirnaeth 04-02-2016 09:39

Re: No Robot Code
 
Looking at the posted image, it looks like they chose cRio instead of roboRio. Our team made the same mistake early last week! :p

CHenry18 04-02-2016 09:51

Re: No Robot Code
 
We got it working last night. There was something in the code that was making the roborio crash.


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

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