Go to Post I love pushing buttons!!! - Michelle Celio [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rating: Thread Rating: 10 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 31-01-2014, 18:53
ATEC Robotics ATEC Robotics is offline
Registered User
FRC #4694
 
Join Date: Jan 2014
Location: Amarillo, Texas
Posts: 7
ATEC Robotics is an unknown quantity at this point
Failed to connect to the target.

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.
  #2   Spotlight this post!  
Unread 31-01-2014, 23:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Failed to connect to the target.

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%.
  #3   Spotlight this post!  
Unread 03-02-2014, 17:29
ATEC Robotics ATEC Robotics is offline
Registered User
FRC #4694
 
Join Date: Jan 2014
Location: Amarillo, Texas
Posts: 7
ATEC Robotics is an unknown quantity at this point
Re: Failed to connect to the target.

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.
  #4   Spotlight this post!  
Unread 03-02-2014, 17:50
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Failed to connect to the target.

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?
  #5   Spotlight this post!  
Unread 04-02-2014, 18:01
ATEC Robotics ATEC Robotics is offline
Registered User
FRC #4694
 
Join Date: Jan 2014
Location: Amarillo, Texas
Posts: 7
ATEC Robotics is an unknown quantity at this point
Re: Failed to connect to the target.

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.
  #6   Spotlight this post!  
Unread 05-02-2014, 07:41
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Failed to connect to the target.

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).
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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