Hi, we are a rookie team and we had a very important programming issue but we couldnt find anything to deal with it.
So, we have our autonomous code and teleop code made in two separate files with just the plane code needed to do everything we want our robot to do… but through our experience, you need to upload the code everytime you wanna run it (for us)… we cant upload the code, turn the crio off, and run the program again without uploading the code all over again.
We saw the frcmastery.com videos but they dont tell us how to combine our teleop and autonomous code into one file that STAYS on the crio and runs even when we reboot the crio. So, I was wondering if anybody could help us with combining the two codes.
Also, on a side note, the code for sending live images from the camera to the dashboard, does that go on the autonomous and teleop files, or do we have to put it somewhere else.
Thanks a lot for your help!
At the bottom of the project window is a Build and Deployment folder. Open it and it contains a startup deployment already built for you. Right click and build. After that succeeds, right click and Run as Startup. It will download and reboot the cRIO. For quick development you can still do the run button execution the way you have, and this deployment is for the boot-up.
Greg McKaskle
Got it, thank you very much!
I just have one more question, we NEED to connect the crio to the laptop through an Ethernet cable to upload the code, right? I know after uploading it, you can control it wirelessly through the radio but I just want to make sure you can upload the code only by tethering it.
You can do everything through the wireless connection.
It’s a good idea not to try re-imaging the cRIO wirelessly, since a loss of the connection can end up making you go through extreme exercises to recover from the event, but deploying software over the wireless link is both possible and expected.
Oh, but everytime I try to run in LabView and the software tries to upload the code but it says no Real Time connection and then I have to connect and upload the code then… Can you help me out?
is it a problem with your jip address? have you run wirelessly before? try setting your computers ip address to 10.xx.yy.9