Go to Post This is ChiefDelphi. There are threads on everything! - LauraN [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 Rating: Thread Rating: 6 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 31-01-2013, 23:24
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: cRIO Drops connection after deploy

I'm developing the project that is currently being used on the cRIO with the same computer that is connecting to said cRIO.

The cRIO has had code deployed and set as startup, however in the context of this issue, I am running RobotMain.

I remember looking at the cRIO LED's today when it was dropping comms, but I completely forgot what they were flashing. I believe the User1 LED was doing something funky. I can verify tomorrow.

When I run RobotMain initially (run button), the code will deploy properly and function as expected. However, when stopped to edit small details and then redeployed (run button), we encounter an issue. The code will deploy properly, and the grid on the front panel of RobotMain will disappear as if it were running properly. When I then switch to the Driver Station, the Robot Code light remains red, and the Communications light turns from green to red. RobotMain will then echo an error, "Communication with realtime target lost".

EDIT: The cRIO has code built and deployed as startup on it, if that has any bearing in the matter.

Last edited by DominickC : 31-01-2013 at 23:27.
Reply With Quote
  #2   Spotlight this post!  
Unread 01-02-2013, 12:01
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,751
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: cRIO Drops connection after deploy

I would suggest connecting up a serial cable or running netconsole to see what is going to the console. That sounds like your cRIO may be crashing either during deploy or shortly after.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 01-02-2013, 23:07
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: cRIO Drops connection after deploy

Quote:
Originally Posted by Greg McKaskle View Post
I would suggest connecting up a serial cable or running netconsole to see what is going to the console. That sounds like your cRIO may be crashing either during deploy or shortly after.

Greg McKaskle
And what would I be looking for?

Alan -

I've tried both using the large "FINISH" button on the front panel of RobotMain, as well as the stop icon next to the run icon in the LabVIEW toolbar above the VI.

When I say "switch to the Driver Station", I am referring to the application. I switch from RobotMain to the 2013 Driver Station.

I have not tried waiting before switching, but I will try tomorrow.
Reply With Quote
  #4   Spotlight this post!  
Unread 02-02-2013, 08:29
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,751
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: cRIO Drops connection after deploy

If you look at the console during boot, it is similar to what you'll see on a linux console or a DOS console. The stream of text will tell you that is is booting, some components and some version numbers, and at some point will stop changing.

Then if you have an error at the driver or OS level, it will print out details about the error -- very useful.

If it crashes, it will often tell you the library name, maybe an address or reason for the crash -- also very useful.

Sometimes it crashes and doesn't tell you anything, but you see the boot sequence and know for certain that it crashed.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 02-02-2013, 10:57
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: cRIO Drops connection after deploy

I assume I have to reformat the cRIO to enable the NetConsole?
Reply With Quote
  #6   Spotlight this post!  
Unread 02-02-2013, 10:59
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: cRIO Drops connection after deploy

If you didn't make that selection when you first imaged the cRIO, then yes you have to go back and click the box so the netconsole part of the image gets downloaded to the cRIO.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2013, 20: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,112
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: cRIO Drops connection after deploy

Enabling NetConsole doesn't require reformatting the cRIO. You just have to run the Imaging Tool and apply the appropriate selection.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2013, 21:41
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: cRIO Drops connection after deploy

Ah, gotcha. I'll have to do this Tuesday/Wednesday...we were just given the chassis to populate with various electronic components and wires.

Dom
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2013, 21:03
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,112
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: cRIO Drops connection after deploy

Quote:
Originally Posted by DominickC View Post
I'm developing the project that is currently being used on the cRIO with the same computer that is connecting to said cRIO.
It doesn't seem reasonable to do otherwise (i.e. to do development on a computer but not connect that computer to the cRIO), so it's likely that I don't understand what you mean.

Quote:
When I run RobotMain initially (run button), the code will deploy properly and function as expected. However, when stopped to edit small details and then redeployed (run button), we encounter an issue. The code will deploy properly, and the grid on the front panel of RobotMain will disappear as if it were running properly.
I'm going to accept your statement about "deploy properly" without asking you to describe exactly what is happening, but if we find out later that there's something going wrong that you think is normal you're going to feel very silly.

How are you stopping execution? Are you clicking the big "Finish" button, or are you using the "stop" icon in the Robot Main window's toolbar?

The "run" arrow should tell you whether it's running or not. If it turns from white to black with "motion" lines, it's running.

Quote:
When I then switch to the Driver Station,
What does "switch to the Driver Station" mean, exactly?

Quote:
the Robot Code light remains red, and the Communications light turns from green to red. RobotMain will then echo an error, "Communication with realtime target lost".
Does the error occur only after switching to the Driver Station? If you wait before switching, does the error happen later?
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 12:05.

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