Go to Post I bet Andy Baker would totally own JVN in a 1v1 dodgeball fight. - Greg Marra [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 13-01-2013, 03:59
Rusttree Rusttree is offline
Registered User
FRC #4146
 
Join Date: Jan 2013
Location: Scottsdale,AZ
Posts: 13
Rusttree is an unknown quantity at this point
Issue deploying robot code to cRIO

We're having a strange problem with deploying code to the cRIO. We're a 2nd year team and we did not have this same issue last year.

When the cRIO and the development computer are freshly rebooted, everything works fine. We can build the code and deploy it with no problem. The driver's station connects and we can drive the robot around. If we, say, make a change to the code, rebuild, and redeploy, the deployment process hangs at the "Waiting for real-time target to respond" stage. It's very repeatable.

Here's the sequence that causes it to hang:
1. Turn on the driver's station laptop and open Dashboard.
2. Reboot cRIO and development computer.
3. Right-click on Robot Main.vi in the project explorer window and select "Run". Code deploys with no problems.
4. Reboot cRio when prompted.
5. Wait for Dashboard to connect and press the Enable button. Verify the robot running the newly deployed code.
6. Press Disable on the Dashboard.
7. Redeploy by right-clicking on Robot Main.vi and selecting "Run" again.
8. Hang forever on "Waiting for real-time target to respond".

Here's a work-around we found that seems to implicate the Dashboard. After steps 1-6 above, we reboot the cRIO and immediately close the Dashboard program. After the cRIO boots, we can then deploy the code without a problem. We can then reopen Dashboard and everything works fine. If Dashboard is running on the driver's station laptop during the redeployment, it will hang. It seems that once the cRIO connects to the driver's station and the Enable button is pressed the first time (steps 1-5), something about Dashboard is preventing the cRIO from reconnecting and accepting a new program after that.

Our team number is 4146, so our IP addresses are:
cRIO: 10.41.46.2
Driver's station laptop: 10.41.46.9
Development computer: 10.41.46.6

Has anyone else experienced this problem? Can anyone verify that it does or does not happen to them when they follow the same steps above? Any troubleshooting ideas are greatly appreciated.

EDIT: Another point of interest. We're using our cRIO from 2012, but we successfully flashed it with this year's (2013) firmware. We also successfully flashed the DLink using the new utility.

Last edited by Rusttree : 13-01-2013 at 04:15. Reason: additional details
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2013, 08:48
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: Issue deploying robot code to cRIO

I verified that there is an issue with RT connection.

If the cRIO has a deployed app and SmardDashboard communications are under way, an attempt to connect a LV project to the cRIO will hang "Waiting for ...".

This doesn't occur if SmartDashboard isn't in in use, and doesn't occur if the Dashboard isn't open.

Back to your post, Running a VI via the right-click you are using, or opening the panel and clicking the run button and running the VI in the debugger should never prompt for a restart. A restart is needed only when you Deploy or Run As Startup.

So, I have enough information to report and debug the RT issue. You shouldn't be bothered by this provided you run in the debugger. I'd like to understand what step is causing the prompt for reboot.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2013, 17:31
Saberbot's Avatar
Saberbot Saberbot is offline
Ask me about Glentite™
AKA: David Ingraham
FRC #4146 (Saguaro Sabercat Robotics)
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Arizona
Posts: 109
Saberbot is just really niceSaberbot is just really niceSaberbot is just really niceSaberbot is just really nice
Re: Issue deploying robot code to cRIO

Greg,
I was working with rusttree during this troubleshooting. I don't remember there being a prompt for reboot when we ran the code directly from robot main. It only prompted when we set it as startup. However, we ran into this problem both when we did a run and a startup deployment.

Since you believe this is related to smart dashboard/netbook tables, should we try this test again, but only close the dashboard instead of closing the entire driver station? That could be an OK workaround until we have to start working on our dashboard.
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 13-01-2013, 19: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: Issue deploying robot code to cRIO

Yes. I believe this only happens when running a dashboard that is connected to the robot code and having a deployed app already loaded on the cRIO.

When I had no deployed app and was simply running VIs using the arrow or Run menu, I didn't see the problem.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 14-01-2013, 10:17
Rusttree Rusttree is offline
Registered User
FRC #4146
 
Join Date: Jan 2013
Location: Scottsdale,AZ
Posts: 13
Rusttree is an unknown quantity at this point
Re: Issue deploying robot code to cRIO

Thanks for taking the time to look into this, Greg. Your help is very appreciated. We'll give it a try tonight or tomorrow and see if it works for us.
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 21:54.

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