it sounds like you are just temporary deploying the code. If you are using labview and just clicking the start button that code will be gone when you reboot.
You need to deploy your code to make it stay on your c-rio. You can follow directions on the NI documentation located here.
http://decibel.ni.com/content/docs/DOC-2663