Go to Post The closest and strongest friendships that I have formed, however, have come from the FIRST robotics program. Friends that I can call “brother,” that I can call “sister,” that I can just call “family.” - DanDon [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 17-01-2010, 17:41
mlim's Avatar
mlim mlim is offline
Registered User
AKA: Michael Lim
FRC #2761 (CN Bronco Robotics)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Fresno, CA
Posts: 4
mlim is an unknown quantity at this point
No Robot Code

We are using LABview and it says that we are deploying the main program... the one that was already built in. However, when we switch to the Driver mode, it says NO ROBOT CODE and will not let us do anything. We have tried restarting and installed all the new updates. How have you guys solved this problem?? What is the code in the first place???
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2010, 18:17
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,833
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

  1. Create a new Robot project, or use one you've already created.
  2. In the Project Explorer window that comes up under "RT CompactRIO Target (10.27.61.02)" you'll see "Build Specifications" (not the one under "My Computer").
  3. Under Build Specifications right click on "FRC Robot Boot-up Deployment"
  4. Click "Build"
  5. When that's done in the same place click on "Run as startup"
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-01-2010 at 18:20.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2010, 23:38
OSU_Springer OSU_Springer is offline
Babcock & Wilcox - Engineer
AKA: Bill Springer
FRC #0677 (Murphy's Outlaws)
Team Role: Engineer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Columbus, Ohio
Posts: 10
OSU_Springer is an unknown quantity at this point
Re: No Robot Code

This could also be caused by an incorrect or corrupted image on the cRio. I would recommend re-imaging the cRio with the v19 image that is part of the latest update. My team (677) had the same problem as you, and this cured the problem.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2010, 15:19
elmer_fud elmer_fud is offline
mentor/code monkey
FRC #2859
Team Role: Mentor
 
Join Date: Jul 2009
Rookie Year: 2009
Location: co
Posts: 18
elmer_fud is an unknown quantity at this point
Re: No Robot Code

I also think you are missing the step mentioned above of selecting run as startup. It also takes the Crio a few minutes (1-3) to start up and load the code when you turn it on.
Reply With Quote
  #5   Spotlight this post!  
Unread 20-01-2010, 08:37
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: No Robot Code

One thing that may be confusing some teams.

When you log out of developer mode to get to the driver account, the development tools such as Eclipse or LabVIEW will stop running. So when you log in as driver, there truly is no code running on the cRIO because the LV process was stopped.

To develop code and drive from the same computer, stay in developer account and use the Start menu to launch the Driver Station. This will allow for debugging and rapid code changes. But do not expect to do this at a competition field.

Once the code does what you like and you are no longer developing, build, deploy, run as startup, and then log out and simply use the driver account.

Also, since the classmate screen is quite small, if you have a second laptop, you may wish to use it for development and simply leave the classmate for the driver account. Plug both computers into the blue cisco router and give the development computer a 10.xx.yy.6 IP.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 20-01-2010, 19:28
Dochartaigh's Avatar
Dochartaigh Dochartaigh is offline
Registered User
AKA: John Doherty
FRC #2647 (Mustang Robotics)
Team Role: Teacher
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Phoenix, AZ
Posts: 8
Dochartaigh is an unknown quantity at this point
Re: No Robot Code

Quote:
Originally Posted by Mark McLeod View Post
  1. Create a new Robot project, or use one you've already created.
  2. In the Project Explorer window that comes up under "RT CompactRIO Target (10.27.61.02)" you'll see "Build Specifications" (not the one under "My Computer").
  3. Under Build Specifications right click on "FRC Robot Boot-up Deployment"
  4. Click "Build"
  5. When that's done in the same place click on "Run as startup"
Thanks for this information. I too have the same problem and now its all fix. Thank you Mr. McLeod
Reply With Quote
  #7   Spotlight this post!  
Unread 21-01-2010, 11:26
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: No Robot Code

Same issue... and nothing mention in this post is working yet. We are using the same cRio as last year. We tried to re-image the cRio but it gave us an error stating that our IP was not correct.

We are currently trying to re-format the cRio. We put the cRio in safe mode and are currently re-formatting. The cRio has been in the reformating mode for over an hour. Is this normal?

Any other advice if this does not work?

Thanks in advance!
Reply With Quote
  #8   Spotlight this post!  
Unread 21-01-2010, 12:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: No Robot Code

Quote:
Originally Posted by grosh View Post
Same issue... and nothing mention in this post is working yet. We are using the same cRio as last year. We tried to re-image the cRio but it gave us an error stating that our IP was not correct.
That sounds like a pretty specific indication of what needs to be fixed. Are you using the Classmate to do the reimage, or some other computer? If the Classmate, have you set your team number properly? If a different computer, did you set the IP address to the right value for your team (e.g. 10.21.47.6)?
Reply With Quote
  #9   Spotlight this post!  
Unread 21-01-2010, 14:46
grosh grosh is offline
Registered User
FRC #2147
 
Join Date: Feb 2008
Location: Spokane, WA
Posts: 100
grosh is an unknown quantity at this point
Re: No Robot Code

We are using the Classmate.

We have set the IP to 10.21.47.06. The DS shows that we DO have communications but DON't have code.

We have done a "Build" and "Run as startup" under the "FRC Robot Boot-up Deployment" as suggested earlier.

We have run the updates for LabView and the DS.

The exact message we get when we try to Reconfig the cRio is "The specified IP address is unreachable. Ensure that the IP address is on the correct subnet."

We tried to ReFormat the cRio but after 6 hour the battery to the robot died.

Now what?
Reply With Quote
  #10   Spotlight this post!  
Unread 21-01-2010, 15:24
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: No Robot Code

Quote:
Originally Posted by grosh View Post
We are using the Classmate.
We have set the IP to 10.21.47.06.
That's not right. The Classmate sets its IP address to 10.x.y.5 based on the team number you enter in the Driver Station window.

Quote:
"The specified IP address is unreachable. Ensure that the IP address is on the correct subnet."
It sounds like you might have tried to change the Classmate's IP address manually and set the subnet mask to 255.255.255.0 by mistake. The cRIO has the address 10.0.0.2 for a moment during the reimaging process, and that won't be reachable. The quick fix would be to change the mask to 255.0.0.0, but the correct fix is to run the Driver Station software and change the team number to 2147 (you might have to change it to something else first and set it back).
Reply With Quote
  #11   Spotlight this post!  
Unread 21-01-2010, 17:33
Wicked Wicked is offline
Registered User
FRC #0354 (G-House Pirates)
Team Role: Programmer
 
Join Date: Dec 2008
Rookie Year: 2008
Location: New York
Posts: 46
Wicked is an unknown quantity at this point
Re: No Robot Code

We're having the same problem here as well, although we're in the Developer account.

I tried setting the code we're using as startup, but no effect was seen.

We're using NI LabVIEW.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Robot Code? leftylink Programming 0 18-02-2008 14:34
Compiling Robot code... greatman05 Programming 5 11-02-2008 21:50
Robot Timing Code robotrobot2 Programming 8 19-01-2008 14:18
2006 Robot Code Download Chris_Elston Programming 2 05-05-2006 10:42
Default Robot Code lvhsrobotics Programming 2 10-01-2003 16:55


All times are GMT -5. The time now is 22:44.

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