Go to Post Personally, I think the solution involves looking at the past. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-02-2011, 18:57
Nirnaeth Nirnaeth is offline
Coach/Mentor
AKA: Michael Liang
FRC #6367 (The Brooke High ElectroLights)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2001
Location: Boston, MA
Posts: 47
Nirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud of
Labview can't connect to cRIO

We have reflashed our cRIO, and we can ping it through command prompt. In addition , driver station says communications are green, but when we try to push down code, it says waiting for real-time target to respond. Any help?
Reply With Quote
  #2   Spotlight this post!  
Unread 19-02-2011, 21:02
MattCarey3625's Avatar
MattCarey3625 MattCarey3625 is offline
#3625 Programming and Wiring Head
FRC #3625 (Some Assembly Required)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Virginia Beach, VA
Posts: 23
MattCarey3625 is an unknown quantity at this point
Re: Labview can't connect to cRIO

Check to make sure your project is directing the code to the correct ip address. Are communications up?
__________________
matt@hp-mini-110$> sudo make robot
sudo pass for matt:
unable to make robot
Reply With Quote
  #3   Spotlight this post!  
Unread 19-02-2011, 21:06
Nirnaeth Nirnaeth is offline
Coach/Mentor
AKA: Michael Liang
FRC #6367 (The Brooke High ElectroLights)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2001
Location: Boston, MA
Posts: 47
Nirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud of
Re: Labview can't connect to cRIO

So here's more information.

1. All software is updated.
2. Our test drivetrain vi works on its own. It can push down and run.
3. Communications are green on driver station.
4. When we try to push down Robot Main.vi, it gets stuck looking for the cRIO.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-02-2011, 21:16
MattCarey3625's Avatar
MattCarey3625 MattCarey3625 is offline
#3625 Programming and Wiring Head
FRC #3625 (Some Assembly Required)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Virginia Beach, VA
Posts: 23
MattCarey3625 is an unknown quantity at this point
Re: Labview can't connect to cRIO

I would try closing out LabVIEW and the Driver Station completely and restart it. If that doesn't work then you may want to check to see if the 'START Comm' has been placed. I hope this helps. Do you have any messages in the debugging console in the Driver Station?
__________________
matt@hp-mini-110$> sudo make robot
sudo pass for matt:
unable to make robot

Last edited by MattCarey3625 : 19-02-2011 at 21:17. Reason: additional comments
Reply With Quote
  #5   Spotlight this post!  
Unread 19-02-2011, 21:21
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: Labview can't connect to cRIO

I don't know what you mean by "push down". Can you be a little more explicit about what you're trying to do, and how you're trying to do it?
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2013, 19:59
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: Labview can't connect to cRIO

We have been having this exact problem for years. We try to "temporarily deploy" by running (pushing down) Robot Main, and get various ways in how the deploying dialog is waiting for the cRIO to respond. We've had trouble identifying a pattern: it occurs across laptops, and now that over different LabVIEW firmwares from different years. The Driver Station reports communications, and the startup robot code (showing green LEDs). I only recall this occurring over wireless.

Its important to note that this doesn't occur with both of our cRIO-FRC II's (both on wireless). The only one running startup code has the problems. I believe reflashing the cRIO was a short-term fix last year; I will try that again as I'm not sure what to try next. Any ideas?
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2013, 20:36
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview can't connect to cRIO

The current SmartDashboard VI has a problem being shutdown when it is deployed. This was listed as a known issue and the workaround is to make sure the dashboard is shutdown before redeploying. An update the fixes the issue should be available next week.

Greg McKaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2013, 21:23
chriz4gx chriz4gx is offline
Registered User
AKA: Christopher Villar
FRC #2871 (Beantown Botz)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Boston,MA
Posts: 45
chriz4gx is an unknown quantity at this point
Re: Labview can't connect to cRIO

My team had the exact problem and we were able to fix it. Make a connection between the cRio and ur Computer through ethernet then go into your network connections and click in the connection that is between the cRio and the Computer. Right click on Properties and then double click on TCP/IPv4 and assign it a IP of 10.xx.yy.5(xx and yy is team number). Then give it a subnet of 255.0.0.0 and click OK. Then trying pinging our cRio to 10.xx.yy.2,you should get a reply back

P.S. when deploying a code in Labview make sure to "Build" then "Run As Startup"
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2013, 22:18
kenavt's Avatar
kenavt kenavt is offline
Registered User
AKA: Colin S
no team
Team Role: Alumni
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Ann Arbor
Posts: 253
kenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond reputekenavt has a reputation beyond repute
Re: Labview can't connect to cRIO

Quote:
Originally Posted by Greg McKaskle View Post
The current SmartDashboard VI has a problem being shutdown when it is deployed. This was listed as a known issue and the workaround is to make sure the dashboard is shutdown before redeploying. An update the fixes the issue should be available next week.

Greg McKaskle
I see... How would you go about shutting down the SmartDashboard? Simply close the FRC Dashboard on the driver station? However, I don't think this would explain last year's problems. I am also not sure that the startup code incorporates Network Tables and the SmartDashboard (its our 2012 robot, reflashed with v47, then the code redeployed).

Quote:
Originally Posted by chriz4gx
My team had the exact problem and we were able to fix it. Make a connection between the cRio and ur Computer through ethernet then go into your network connections and click in the connection that is between the cRio and the Computer. Right click on Properties and then double click on TCP/IPv4 and assign it a IP of 10.xx.yy.5(xx and yy is team number). Then give it a subnet of 255.0.0.0 and click OK. Then trying pinging our cRio to 10.xx.yy.2,you should get a reply back

P.S. when deploying a code in Labview make sure to "Build" then "Run As Startup"
Our IP address was set properly, I assure you, as well as our radio. Plus, we had communications through the Driver Station. Thanks for the suggestion though.
__________________
University of Michigan Computer Engineering '17

FRC 2337 student alumni (2010-2013)
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2013, 23:53
team3039 team3039 is offline
Registered User
FRC #3039
 
Join Date: Jan 2013
Location: Destrehan, LA
Posts: 34
team3039 is an unknown quantity at this point
Re: Labview can't connect to cRIO

Typically, I reboot the cRIO from the DriverStation Diagnostics tab. Before it can re-establish communications, I completely exit the DriverStation. Double check your computer's IP address, wait a minute or two, then try to deploy again. It has always worked for us.


-JP
Team 3039
Reply With Quote
  #11   Spotlight this post!  
Unread 24-01-2013, 07:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Labview can't connect to cRIO

The bug is only in this year's version of SmartDashboard. I was mentioning it because the symptom fit.

The most common cause I saw last year for not being able to deploy was that the robot would be disabled and the disabled code was using lots of CPU because it was constantly throwing errors. We changed the framework slightly this year to help avoid that.

I'd encourage you to start from this year's template and merge in some of last year's code and see if the deploy issue goes away. Otherwise, let's debug it -- which isn't the same as guessing at the issue.

And it should not be necessary to reboot in order to be able to deploy.

Greg McKaskle

Last edited by Greg McKaskle : 24-01-2013 at 07:46. Reason: Another thought
Reply With Quote
Reply


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 20: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