Go to Post "Oblivious" people asking questions are what gives us an excuse to sit around on CD. - Ryan M. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2016, 11:23
Leif Asher Leif Asher is offline
Registered User
FRC #4232
 
Join Date: Jan 2016
Location: Alton IL
Posts: 16
Leif Asher is an unknown quantity at this point
Angry 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*

Last edited by Leif Asher : 02-02-2016 at 11:27. Reason: forgot to add information
  #2   Spotlight this post!  
Unread 02-02-2016, 11:29
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 150
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
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   Spotlight this post!  
Unread 02-02-2016, 11:32
Leif Asher Leif Asher is offline
Registered User
FRC #4232
 
Join Date: Jan 2016
Location: Alton IL
Posts: 16
Leif Asher is an unknown quantity at this point
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   Spotlight this post!  
Unread 02-02-2016, 11:37
Nirnaeth Nirnaeth is offline
Coach/Mentor
AKA: Michael Liang
FRC #6367 (The Brooke High ElectroLights)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2001
Location: Boston, MA
Posts: 47
Nirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud of
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"?
__________________
Lead Mentor - Team 6367 - The Brooke High ElectroLights
Former Mentor - Team 5969 - The English Skunkworks
Former Mentor - Team 1754 - The Excel Nitro Knights
  #5   Spotlight this post!  
Unread 02-02-2016, 11:42
Leif Asher Leif Asher is offline
Registered User
FRC #4232
 
Join Date: Jan 2016
Location: Alton IL
Posts: 16
Leif Asher is an unknown quantity at this point
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   Spotlight this post!  
Unread 02-02-2016, 11:49
AustinShalit's Avatar
AustinShalit AustinShalit is offline
Registered User
AKA: אוסטין
no team (WPILib Suite Developer)
 
Join Date: Dec 2013
Rookie Year: 2008
Location: Los Angeles/Worcester/Israel
Posts: 150
AustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of lightAustinShalit is a glorious beacon of light
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   Spotlight this post!  
Unread 02-02-2016, 11:51
Leif Asher Leif Asher is offline
Registered User
FRC #4232
 
Join Date: Jan 2016
Location: Alton IL
Posts: 16
Leif Asher is an unknown quantity at this point
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   Spotlight this post!  
Unread 02-02-2016, 12:39
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 02-02-2016 at 12:43.
  #9   Spotlight this post!  
Unread 02-02-2016, 13:13
Leif Asher Leif Asher is offline
Registered User
FRC #4232
 
Join Date: Jan 2016
Location: Alton IL
Posts: 16
Leif Asher is an unknown quantity at this point
Re: No Robot Code

Okay, thanks for the help
  #10   Spotlight this post!  
Unread 02-02-2016, 16:52
Leif Asher Leif Asher is offline
Registered User
FRC #4232
 
Join Date: Jan 2016
Location: Alton IL
Posts: 16
Leif Asher is an unknown quantity at this point
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   Spotlight this post!  
Unread 02-02-2016, 17:06
spat's Avatar
spat spat is offline
QDriverStation Developer
AKA: Alex Spataru
FRC #3794 (WinT)
Team Role: College Student
 
Join Date: Sep 2015
Rookie Year: 2013
Location: Queretaro, Mexico
Posts: 45
spat is on a distinguished road
Re: No Robot Code

Quote:
Originally Posted by Leif Asher View Post
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
__________________
You can live for yourself today, or help build tomorrow for everyone

Last edited by spat : 02-02-2016 at 17:15.
  #12   Spotlight this post!  
Unread 02-02-2016, 17:21
Leif Asher Leif Asher is offline
Registered User
FRC #4232
 
Join Date: Jan 2016
Location: Alton IL
Posts: 16
Leif Asher is an unknown quantity at this point
Re: No Robot Code

Thanks for the help everyone. We got it to work.
  #13   Spotlight this post!  
Unread 02-02-2016, 19:09
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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)?
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #14   Spotlight this post!  
Unread 03-02-2016, 17:08
CHenry18 CHenry18 is offline
Registered User
FRC #2874
 
Join Date: Feb 2016
Location: Grain valley
Posts: 6
CHenry18 is an unknown quantity at this point
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   Spotlight this post!  
Unread 03-02-2016, 18:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,906
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Closed Thread


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 01:30.

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