Go to Post To me, every robot is a moving mechanical art form, a sculpture made of aluminum, motors and gears, and I think that soon we will be seeing those art forms involved in some of the most fantastic robotic "dances" that any of us have ever seen - DougHogg [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 24-03-2010, 12:31
Mentor1818 Mentor1818 is offline
Registered User
AKA: Christopher Barber
FRC #1818
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Louisiana
Posts: 6
Mentor1818 is an unknown quantity at this point
DS NO ROBOT CODE ERROR

After we got the system home from the comp, we turned on the robot and were unable to get a response from the DS because of a "NO ROBOT CODE" error, I have tried all the steps I have read in the forms, and nothing seems to work. The cRIO is working correctly because I am able to trigger the DIO to high and low states while deploying the code in LabVIEW. I have formatted the cRIO, reloaded the image and have full connectivity within the DS. But still I have the same error....

What should I do???

Reply With Quote
  #2   Spotlight this post!  
Unread 24-03-2010, 12:45
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: DS NO ROBOT CODE ERROR

Did you remove the encryption from the bridge?
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #3   Spotlight this post!  
Unread 24-03-2010, 12:47
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,609
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: DS NO ROBOT CODE ERROR

1. What is your Robot Signal Light doing when you boot normally?
2. Are you deploying code to the cRIO and not just running the code with Labview's run button?
3. Has a mischievous gremlin switched the No App DIP switch on your cRIO? (Sorry, don't recall how the correct position looks)

EDIT: See page 12+ of this document for DIP switch settings:
http://decibel.ni.com/content/docs/DOC-2632
Make sure Safe Mode, No App, IP Reset, and No FPGA are all OFF.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 24-03-2010 at 12:51.
Reply With Quote
  #4   Spotlight this post!  
Unread 24-03-2010, 13:56
Mentor1818 Mentor1818 is offline
Registered User
AKA: Christopher Barber
FRC #1818
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Louisiana
Posts: 6
Mentor1818 is an unknown quantity at this point
Re: DS NO ROBOT CODE ERROR

I am directly connected to the cRIO from the Classmate.
All the DIP switches are in the correct position
I am able to deploy the Digital IO vi and get the 0 to 5V change when changing the Boolean value.

I am working on just trying to get the teleop to work without the DS software in LabVIEW.
Reply With Quote
  #5   Spotlight this post!  
Unread 24-03-2010, 14:12
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,609
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: DS NO ROBOT CODE ERROR

I'm confused by this "deploying Digital IO.vi". Are you hitting the run button from Labview for all these things, or are you Deploying your project from the Project Explorer? I just want to make sure we're all clear that the hitting Labview's run button doesn't save code on the cRIO. The only way to save code on the cRIO is to Deploy a project from the Project Explorer. If you're already aware of this then apologies for insulting your competence, just making sure we've got the basics covered.

That said, have you tried creating a fresh project and deploying that? That should take care of any oddities in your current code causing problems. Also, are you getting any diagnostic errors on the DS?
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter
Reply With Quote
  #6   Spotlight this post!  
Unread 24-03-2010, 14:21
Mentor1818 Mentor1818 is offline
Registered User
AKA: Christopher Barber
FRC #1818
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Louisiana
Posts: 6
Mentor1818 is an unknown quantity at this point
Re: DS NO ROBOT CODE ERROR

Kevin,

I have done those steps first, and now I have been working on just getting a real-time response.

Things I have done.
1. Built and "Run as Startup" for Default Project
2. Formatted and re-imaged cRIO multiple times
3. All DIP switches on in correct position
4. Reset IP on cRIO and set it back to what is is suppose to be.
5. Computer IP address on DS is correct and connected to the cRIO directly via CAT5.
Reply With Quote
  #7   Spotlight this post!  
Unread 24-03-2010, 15:08
Jon236's Avatar
Jon236 Jon236 is offline
Registered User
AKA: Jon Mittelman
FRC #2648 (Infinite Loop)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2000
Location: Windsor, Maine
Posts: 741
Jon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond reputeJon236 has a reputation beyond repute
Re: DS NO ROBOT CODE ERROR

Quote:
Originally Posted by Mentor1818 View Post
I am directly connected to the cRIO from the Classmate.
All the DIP switches are in the correct position
I am able to deploy the Digital IO vi and get the 0 to 5V change when changing the Boolean value.

I am working on just trying to get the teleop to work without the DS software in LabVIEW.
If directly connected, are you using a crossover cable?

As I understand it, you can read sensors without the DS, but to have actuators active, the DS is required to be running.
__________________
Jon Mittelman

Senior Judge Advisor New England & Israel 2014-2015
Infinite Loop Mentor 2011-2015
TechnoTicks Mentor 2000-2011
Championship Chairman's Award 2009 Team236 TechnoTicks
Judge 2010-2015 Championships
Senior Judge Advisor New England District Championship 2014-2015
Judge Advisor Tel Aviv Regional 2007-2015
Judge Advisor Pine Tree Regional 2013
Maine Regional Planning Committee
New England District Planning Committee
Lead Inspector Microsoft Tel Aviv Regional 2006-2008
Judge & Lead Inspector GM/Technion Tel Aviv Regional 2006
Judge UTC Hartford Regional 2006
Reply With Quote
  #8   Spotlight this post!  
Unread 24-03-2010, 15:16
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,112
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: DS NO ROBOT CODE ERROR

Quote:
Originally Posted by Mentor1818 View Post
I am working on just trying to get the teleop to work without the DS software in LabVIEW.
I don't understand. I'm pretty sure you're not trying to run without the Driver Station, but that's what it looks like you just said. Something about your descriptions of the problem doesn't match what I've come to expect as the typical vocabulary when talking about the control system.

You've answered only one and a half of the direct questions posed to you. It's not easy for us to help you unless you help us to do so. Here's another question: Did you choose "Run as Startup" after you reimaged the cRIO? Your list of things you have done is in a very unconventional order, and if you indeed did things that way, you would have erased the code immediately after loading it onto the cRIO.
Reply With Quote
  #9   Spotlight this post!  
Unread 24-03-2010, 17:18
Mentor1818 Mentor1818 is offline
Registered User
AKA: Christopher Barber
FRC #1818
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Louisiana
Posts: 6
Mentor1818 is an unknown quantity at this point
Re: DS NO ROBOT CODE ERROR

Ok,

system=robot

I had no problem with the system working correctly at the Bayou Regional.

Once the system came back to the H.S. that I mentor it was discovered that when the robot was turned on and hooked via a patch CAT5 cable, instead of wireless the robot did not respond to any DS input or could not be enabled in any mode (auto/tele/practice) because the "No Robot Code" light in the Dashboard was not green.

I have always built the code, then deployed it as "Run as Startup"
This worked all through competition season till after the Bayou Regional once the robot was returned.

With the robot on, and the DS running I have a green communication light,

The error that is given to this day is as follows:
THIS IS THE ERROR FROM THE OPERATION TAB IN THE DS DASHBOARD WITH THE MOUSE ON THE ROBOT CODE INDICATOR
There is no user code running on the robot
1. If developing code use the tools to start it.
2. If ready for competition, build and deploy it as a startup application

THIS IS THE ERROR FROM THE DIAGNOSTICS TAB IN THE DS DASHBOARD
No change to Network Configuration: "Local Area Connection"
I/O unit not detected or not installed correctly.

The LED on the Digital Side Car the light is blinking slow, which means the system is disabled.

I have made a 32-pin test connector for the slot 6 DIO. On this connector I have an array of LEDs. I have determined that the digital sidecar DIO14 correspondes to pin 3 and have added code in the Begin.vi for the LED on pin 3 to light up once the code runs. You may say...."Well why not use the digital sidecar to light the LED..." I wanted to come directly from the cRIO to minimize other possible variables...

I do have a digital sidecar connected to slot 4.

So with the code deployed as "Run as Startup" and the DS software running, the Digital Sidecar in slot 4 has a status light blinking slow, and my test adapter has the LED on pin 3 which is DIO14 lit, which indicates that my code is running on the cRIO.

To test the real-time connectivity from the Classmate to the cRIO while a program is running in LabVIEW, I used my test connector on the slot 6 DIO and the example for a digital output to activate and deactivate the LED on pin 3. This worked successfully.

I am trying now to figure out where the DS DASHBOARD code is so I can set the Boolean value for the "Robot Code" to true and see if this fixes my problem.

Have I stated my situation clear enough??

Thanks
__________________
Christopher Barber

FLL/FTC/FRC Mentor 3yrs experience
Technology and Exhibit Support Engineer
Sci-Port Louisiana's Science Center

Intelligent Sensors and Actuators Group
-Wireless Sensor Networks
-Cooperative control of Micro Aerial Vehicles
Reply With Quote
  #10   Spotlight this post!  
Unread 27-03-2010, 11:53
Mentor1818 Mentor1818 is offline
Registered User
AKA: Christopher Barber
FRC #1818
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Louisiana
Posts: 6
Mentor1818 is an unknown quantity at this point
Re: DS NO ROBOT CODE ERROR

So, when I fully describe the problem...then no one wants to help with anything I might be missing? I am still stuck and need help to get it running.
__________________
Christopher Barber

FLL/FTC/FRC Mentor 3yrs experience
Technology and Exhibit Support Engineer
Sci-Port Louisiana's Science Center

Intelligent Sensors and Actuators Group
-Wireless Sensor Networks
-Cooperative control of Micro Aerial Vehicles
Reply With Quote
  #11   Spotlight this post!  
Unread 27-03-2010, 12:30
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,112
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: DS NO ROBOT CODE ERROR

Your description is hard to follow. I'm having a difficult time determining the sequence of events that you went through.

Let's start at the beginning. On the Diagnostics Tab of the Driver Station application, what is it reporting as the DS Version and cRIO image?
Reply With Quote
  #12   Spotlight this post!  
Unread 27-03-2010, 15:39
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,748
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: DS NO ROBOT CODE ERROR

My suggestion is to connect things together tethered as you describe. Provided you have Communications and No Code, open the source VI, Robot Main.vi and push the run button. If that works redo the build and deploy and ensure it is set to run as startup.

If the cRIO was reformatted, the deployed app was erased. That would explain what I get from the description.

Greg McKaskle
Reply With Quote
  #13   Spotlight this post!  
Unread 29-03-2010, 00:17
Mentor1818 Mentor1818 is offline
Registered User
AKA: Christopher Barber
FRC #1818
 
Join Date: Mar 2010
Rookie Year: 2008
Location: Louisiana
Posts: 6
Mentor1818 is an unknown quantity at this point
Re: DS NO ROBOT CODE ERROR

Guys,

Thanks for all the help!! I figured out why I was having the problem.

I was installing both of the updates, being the DS update and the Labview update on the Classmate. After installing the DS, I am pretty sure installing the Labview update which is meant for computers other than the DS, it corrupted some files that messed up the communication protocol between the cRIO and DS software.

So everything is now up and running just fine!!!

Thanks again for all your help!!!
-Christopher
__________________
Christopher Barber

FLL/FTC/FRC Mentor 3yrs experience
Technology and Exhibit Support Engineer
Sci-Port Louisiana's Science Center

Intelligent Sensors and Actuators Group
-Wireless Sensor Networks
-Cooperative control of Micro Aerial Vehicles
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
"No Robot Code" error? plus other issues... 3195mentor NI LabVIEW 3 13-02-2010 08:20
Compressor Code causes No Robot Code Error sircedric4 C/C++ 25 03-02-2010 10:13
Code error causing robot to go into programming mode. MJD Programming 14 30-10-2007 14:21
Error in code light on, trouble finding error Bryan Herbst Programming 16 12-10-2007 21:59
Code error on RC after downloading "bells and whistles" version of Kevins camera code DanDon Programming 6 10-01-2006 18:07


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

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