Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   No Robot Code (http://www.chiefdelphi.com/forums/showthread.php?t=115246)

azureflame241 21-03-2013 11:24

No Robot Code
 
The cRIO that were using is imaged in LabView and we have the code loaded onto the cRIO, we are able to connect to the cRIO but it says no robot code in the driver station, can some one help us with this problem?

Alan Anderson 21-03-2013 11:57

Re: No Robot Code
 
"No robot code" means that the Driver Station cannot communicate with a robot program running on the cRIO. If you are connected and the "Communication" indicator is green, then it means no code is running on the cRIO.

It can happen if no code was loaded before the system was booted. How did you load the code onto the cRIO?

It can also happen if code is present but the NO APP switch is turned on. If you are using an 8-slot cRIO with physical switches, make sure NO APP is OFF. If you have a 4-slot cRIO, use the imaging tool to make sure the virtual NO APP switch is off.

eruiz22 22-03-2013 01:08

Re: No Robot Code
 
Hey my team had the same problem this year. I found that restarting the robot after building and deploying fixed our problem.
I think it's worth a try :)

Alan Anderson 22-03-2013 09:39

Re: No Robot Code
 
Quote:

Originally Posted by eruiz22 (Post 1251165)
Hey my team had the same problem this year. I found that restarting the robot after building and deploying fixed our problem.
I think it's worth a try :)

If you use the Run As Startup command instead of Deploy, the robot will be rebooted as part of the process. There's never really a good reason to use the Deploy command in LabVIEW.

azureflame241 04-04-2013 14:37

Re: No Robot Code
 
We used LabView to load the code on the robot, we used Robot Main.vi to load on the cRIO

Tom Line 04-04-2013 15:28

Re: No Robot Code
 
Quote:

Originally Posted by azureflame241 (Post 1257232)
We used LabView to load the code on the robot, we used Robot Main.vi to load on the cRIO

Using robot main does not permanently place a copy of the compiled program onto the robot.

To do that, you need to use the project explorer, move to the bottom item "Build Specifications", and click the "+" symbol to expand it. Right click on the item that was revealed, then click "build". Once the build is complete, right click again and click "Run as startup". This will place your compiled code onto the cRIO so that it executes whenever the cRIO is powered on.


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

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi