Hello, we are a second year team needing some assistance. When trying to deploy a new program onto our cRIO from labview we keep getting the same error message “Failed to connect to target.” I dont understand what this error is. We have encountered a “Failed to connect to real time target” and fixed that problem. How we start to get the program on is 1.) Build all. 2.) Build again from the properties window. 3.) Deploy from FRC Boot-up. 4.) Then Run as Startup. Please respond with any useful tips or suggestions to get us back on track.
You’re doing twice as many steps as necessary. Just Build then Run As Startup. There will probably never be in a situation where Deploy is appropriate, and Build All is potentially going to compile things that you don’t need.
Failure to connect could be a symptom of several things. The two most common causes I’ve seen are
- a misconfigured network on the programming computer, and
- too much CPU usage in your robot program.
Look at the red CPU % line on the Driver Station’s Charts tab. For a simple program, it shouldn’t get above 50%.
We tried this and we are still getting the same “Failed to connect to target” error message. We tried loading last years program that we were sure would work and got the same error message.
Do you have the IP address of the Real-Time Target set properly in the project? It shows up in parentheses to the right. For your team, 10.46.94.2 should be correct.
Is your cRIO actually at the 10.46.94.2 address? Can you ping it from the computer? Does the cRIO connection LED on the Driver Station show it as green?
We double checked that and matter of fact it was off, thank you! However we are running into another past problem, now the old error is gone and we are getting a " Real time application has not been built" this is after wwe have built the program. We have ran into this in the past and somehow fixed it.
Did the project get copied from another computer, or from another folder on the same computer? There’s a Properties setting that points to the folder where the code gets built, and it might still be specifying an old location.
Right-click on the FRC Robot Boot-up Deployment and choose Properties. In the Information category, verify that the Local destination directory matches the folder where you have your project (plus the Builds subdirectory).