Log in

View Full Version : loading into cRio


tilky
13-12-2011, 07:21
me and another programmer have been trying to load the code into the robot with no success. we hit run, and it seems that it is sending, but when we go to driver station, it says there is no robot code. What are we doing wrong?

Mark McLeod
13-12-2011, 07:25
Are you using the Run button at the top of the screen?
That's temporary and generally for debugging.

To put the code permanently onto the robot, so that it automatically runs whenever the robot is started, look under "Build Specifications" on the Project Explorer window.
Under that will be a single entry "FRC Robot Boot-up Deployment"
Right-click on the entry there and choose:
Build - takes a few minutes
Run as startupRun as startup will take a little longer as it transfers everything to the cRIO. The first time it will just do it, but after the first time you will also see a pop-up message warning you that it will be replacing files that already exist on the cRIO. When you see that just click okay.

Alan Anderson
13-12-2011, 10:08
...we hit run,...

What "run" are you hitting? If you want to run your LabVIEW robot code with access to the VI front panels, you need to run the "Robot Main" VI. And then you need to leave it running. Don't close LabVIEW before you start the Driver Station application.

Mark's advice is proper if you want to load the robot code onto the cRIO and run it there with no interaction with LabVIEW on your PC.