Are you running your code using the run arrow in Robot Main? This is useful for debugging, but not what you want for the robot to be able to run without your programming laptop plugged in.
If you want your code to be persistent, you need to
- Go to the bottom of the project explorer list and open up Build Specifications.
- Then right click on "FRC Robot Deployment" and select "Build". This will take a few minutes.
- Then right click on FRC Robot Deployment again and select "Run at Startup". This will also take a little bit.
- If/when you get a Conflict Resolution window saying something about all VIs on the target being closed if you continue, click OK. This is what you want to happen.