Communications but "No Robot Code"

We’re having quite the dilemma here in Richmond. We’re coding in C/C++ in Wind River as we have done for the past two years. We can successfully compile/build our code, successfully deploy the code, FTP to the cRIO and see the code, but our Classmate stubbornly insists there’s “No Robot Code” to execute.

We’ve reimaged the Classmate twice and applied all updates. We’ve tried everything else we can think of. Anyone have any ideas that might help narrow down the problem?

Thanks to everyone in advance for your time and assistance. Getting a little nervous here.

Using the DS, verify the version numbers and put them in a forum post. If the code starts, but runs into version problems, it will not stay running, or will not participate in the protocols.

You may also want to view the print stream that goes to the serial port. You can do this with the NetConsole or using a null modem serial cable. Watch for diagnostics that indicate why the code isn’t running, or post them here for others to pear at.

Greg McKaskle

DS Version: 01.05.11.00
cRIO Image: C-2011_v25

And I don’t mean to sound like a n00b but how do I run NetConsole?

Are you trying to connect wirelessly or wired? If you are trying to connect wirelessly then read the text below…

Check one other thing, my kids were having the same problem and I noticed that the blue light on the dLink wasn’t blinking. If the blue light isn’t blinking then it is not broadcasting the wireless signal. :rolleyes: I had them reset the dLink and follow the instructions to set it up for our bot and viola it worked!

Appreciate the reply. We are successfully communicating with the robot. Under ‘Communications’ in the Diagnostics tab of the DS we have green lights for the Bridge and Robot. The DS just doesn’t recognize that there’s any code to run.

Found the NetConsole software but when we enter the IP address for the cRIO in the “Machine Address” field, nothing happens.

Did you set the code to auto run when you power the cRio? (May sound like a silly question but it’s one of the mistakes we made early on…) If not then give me a little while to put my hands on a programmer and we’ll see if he can help…

We’re coding in C/C++ from Wind River. It was my understanding that C++ code runs automatically by default and you only had to select the automatically run option for LabView. True? Would love for that to be the issue.

Hmmm not sure as this is our first year using C++, programmer on his way though…will snag him as soon as he walks in the door…

Okay … finally discovered that the NetConsole wasn’t working because we didn’t enable it through the nt-ri.ini file. That got the console running and we are able to see that it does try to launch FRC_UserProgram.out but is getting “reference to undefined symbol” errors and fails to load.

Still not working but at least we know we’re dealing with a code problem.

Thanks everyone!!!

From programmer:

What is the file extension you are sending to cRio when you deploy the code?

Inside the WindRiver preferences, under the FIRST option I believe is a setting to select which .out file is transferred. Make sure it is set to the right file. Also, is your program based on one of the pre-existing samples? If not, you may not have configured the project properly and it may be trying to build the code in the wrong form for how the cRio expects it. I would try downloading one of the included sample programs just to ensure they start up

For the record, the undefined symbol message means the cRio is trying to execute some function and can’t actually find it in your code. This is common when you don’t have the project configured properly, or you’re downloading the wrong file.