Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Connecting to cRIO... (http://www.chiefdelphi.com/forums/showthread.php?t=112112)

sarah_storer 26-01-2013 15:21

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!

sarah_storer 26-01-2013 16:53

Re: Connecting to cRIO...
 
I tried again multiple times and fixed some wiring issues downstream but I still got the same error:/

Greg McKaskle 26-01-2013 18:15

Re: Connecting to cRIO...
 
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

Tem1514 Mentor 26-01-2013 21:13

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

randalcr 27-01-2013 00:37

Re: Connecting to cRIO...
 
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.

Alan Anderson 27-01-2013 11:39

Re: Connecting to cRIO...
 
Quote:

Originally Posted by randalcr (Post 1222598)
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.

sarah_storer 27-01-2013 14:41

Re: Connecting to cRIO...
 
Quote:

Originally Posted by Greg McKaskle (Post 1222404)
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


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!

sarah_storer 28-01-2013 18:13

Re: Connecting to cRIO...
 
Quote:

Originally Posted by Greg McKaskle (Post 1222404)
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


What line are you saying to click on?

Alan Anderson 28-01-2013 21:31

Re: Connecting to cRIO...
 
Quote:

Originally Posted by thetimemachine (Post 1223500)
What line are you saying to click on?

Quote:

Originally Posted by Greg McKaskle (Post 1222404)
...the project tree item called RT compactRIO Target...

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


All times are GMT -5. The time now is 02:09.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi