cRIO retaining code

Hello -

Just a quick question regarding the cRIO and code retention. We have to deploy code to our cRIO wirelessly every time the cRIO is restarted. This is due to the fact that the cRIO is retaining some very old code from three to four weeks ago. Is there a way to deploy code in a manner in which it sticks?

Thanks.

Yes there is. It sounds like you’ve been running your code “through your computer” by pressing the Run arrow to the top of Robot Main.vi (I think the actual term is Deploy). Doing this will only keep the code running until the next restart.

Instead, you’ll have to expand the Build Specification section in your project explorer. Then, right click on “FRC Bootup Deployment” and then select “Build”. Wait for your code to build, and after that, go to the same menu and click “Run as Startup”. This will cause the code to “stick” on your cRIO.

Ah, great! Thanks for the help!