While working on my myRIO heart rate monitor demo for NI week, I learned how to deploy a startup application so that the myRIO runs a program when it turns on without needing any other connections besides power. If you’re interested in learning more, my Instructable can be found here.
Because the application runs without the LabVIEW front panel (this is called headless), there are some important details that you need to consider when creating your startup visual interface (VI). Your VI will only run once upon startup so if you want something that runs continuously, you need to plan accordingly. In my case, I simply used a while loop with a stop button control to turn it off. Since there is no front panel when running on startup, the stop button can never be pushed and thus the code ran continuously.
Once you create your VI, my Instructable goes over how to make a build that can then be deployed to the myRIO. The VI is set to run at startup and then the myRIO is restarted. Once the myRIO powers on, the “Status” LED will light up. When the “Status” LED turns off, it will take about 10 to 15 seconds and then your VI will begin to run.
If you don’t want your VI to run at startup, there is an awesome built-in tool that you can use. By plugging your myRIO into your computer via USB, you can actually change its settings using your web browser. I had issues using Google Chrome so I recommend using Firefox. Simply enter the myRIO IP address (default 172.22.11.2) and you can change a ton of different myRIO settings. From the main page, there is a box you can check to disable applications running on startup. All you have to do now is go back to your myRIO project and you can switch your VI to not run at startup. Voila! You’re back to where you began.