|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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* Last edited by Leif Asher : 02-02-2016 at 11:27. Reason: forgot to add information |
|
#2
|
||||
|
||||
|
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?
|
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
|||
|
|||
|
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"? |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
||||
|
||||
|
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?
|
|
#7
|
|||
|
|||
|
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.
|
|
#8
|
|||||
|
|||||
|
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. Last edited by Mark McLeod : 02-02-2016 at 12:43. |
|
#9
|
|||
|
|||
|
Re: No Robot Code
Okay, thanks for the help
|
|
#10
|
|||
|
|||
|
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. |
|
#11
|
||||
|
||||
|
Re: No Robot Code
Quote:
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 Last edited by spat : 02-02-2016 at 17:15. |
|
#12
|
|||
|
|||
|
Re: No Robot Code
Thanks for the help everyone. We got it to work.
![]() |
|
#13
|
|||||
|
|||||
|
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)?
|
|
#14
|
|||
|
|||
|
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. |
|
#15
|
|||||
|
|||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|