Connecting to cRIO...

our cRIO is plugged in via ethernet cable and we can ping it and get a response.
When we ran the driver station, the light by communication is green.

However, when we try to deploy code to the cRIO it says
“Failed to connect to Real-Time target”

Anything that helps is welcomed:)

Thanks in advance!

I tried again multiple times and fixed some wiring issues downstream but I still got the same error:/

You don’t mention what tool/language, but if using LabVIEW, make sure that the project tree item called RT compactRIO Target has the right IP address. It defaults to 10.xx.yy.02 and if you don’t change it in the wizard, you will not connect. To change it, right click on the line and choose Properties and change the IP.

Greg McKaskle

You also will need to set your TCP/iv4 on your computer to match your team number.

Our team has been having issues that sound similar to this, we make a change in code and then try to deploy the update but it seems to never be able to find the crio.

We managed to find a work-around by closing the driverstation and dashboard when making changes. it seems to work about 90% of the time.

someone correct me if i’m wrong but i think it’s probably some issue in the way the driverstation and dashboard get data to and from the bot.

You’re correct enough. It’s only the Dashboard communication that’s causing the trouble, and it’ll be fixed with an update soon. For now, your workaround is the officially sanctioned way to deal with it. The Driver Station program doesn’t need to be shut down; you only have to close the Dashboard (and any other programs using the SmartDashboard data). If you do that before you try to send code to the robot, it should work every time.

Thank you so much!! That just might be our problem! I was trying to lauch some example code from LabVIEW and the example code didn’t have our cRIO IP address

I’ll fix it in the morning when we get back to school

Thanks Again!

What line are you saying to click on?

It’s the one with the IP address in parentheses after it.