Go to Post A constant awareness of safety is a plague I would welcome. - Alan Anderson [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 08-03-2012, 12:54
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Unhappy Unable to run cRIO with cRIO2 program

Dear CD,
I have been running FRC3548 team robot code on the cRIO2 successfully for some time and am finally getting around to program the original cRIO because the cRIO2 is headed for the robot this weekend at Waterford, MI.
I was success in re-imaging the cRIO from v28 to v43. I was able to deploy and execute the Run at startup command and hit the reboot cRIO as expected.
However, on the driver station the top light goes green but not the bottom light - it remains red (sorry not looking at it right now for proper description).
Any suggestions on how to proceed? Same Labview code, same bench, same ca bles, same Labview IO modules - etc. Only thing different is cRIO.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #2   Spotlight this post!  
Unread 08-03-2012, 12:56
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Unable to run cRIO with cRIO2 program

Try enabling NetConsole using the Imaging Tool and watching the NetConsole information during the robot boot-up to see if it shows any error messages.
Reply With Quote
  #3   Spotlight this post!  
Unread 08-03-2012, 13:39
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: Unable to run cRIO with cRIO2 program

Does it work if you try to run an unmodified default project?

The physically larger cRIO is smaller on the inside. There are some features left out of the image when it's installed on an 8-slot cRIO because they won't fit. Are you using vision processing?
Reply With Quote
  #4   Spotlight this post!  
Unread 09-03-2012, 07:11
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Unable to run cRIO with cRIO2 program

Alan,
I'm not using any vision processing per say, the base program is installed but no additional software has been added.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #5   Spotlight this post!  
Unread 10-03-2012, 07:11
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,748
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: Unable to run cRIO with cRIO2 program

As Alan said, please test running an example or basic framework. There are a number of differences in the image, but all test programs are run on both four and eight. If you don't get it resolved, please contact NI technical support and supply your project code. I'd offer more assistance, but I'm out for spring break, after we finish up with WPI regional.

Greg McKaskle
Reply With Quote
  #6   Spotlight this post!  
Unread 22-03-2012, 22:25
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Unable to run cRIO with cRIO2 program

Finally getting around to updating this post after Waterford, MI district tournament.
Alan, I took your basic idea and proceeded. I was able to run the original cRIO by returning to an earlier version of the team program - so everything operates as expected, although it seems like I need to fight with the original cRIO more in order to update the firmware and download team code.
The primary difference between the earlier version and the latter versions are the size of the autonomous program. Earlier, I had 15, individual one second structures(term?) like the example code in a sequence. For latter versions, I added 3 more copies of the first and began making modifications. With the 4 versions of the autonomous sequence I suspect I maxed out memory and/or throughput.

Does anyone have a simple means of determining if I maxed out memory on the original cRIO?
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 22-03-2012 at 22:28. Reason: ALan's comment
Reply With Quote
  #7   Spotlight this post!  
Unread 23-03-2012, 20:07
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,748
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: Unable to run cRIO with cRIO2 program

The Charts tab lists the free RAM, largest free RAM block, and free flash to the right side of the window.

What are the numbers, and do the change over time?

Greg Mckaskle
Reply With Quote
  #8   Spotlight this post!  
Unread 25-03-2012, 23:11
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Re: Unable to run cRIO with cRIO2 program

Greg,
Here's the entire FRC3548 V28 Robot project.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377

Last edited by marccenter : 19-11-2012 at 17:12.
Reply With Quote
  #9   Spotlight this post!  
Unread 26-03-2012, 16:34
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,731
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: Unable to run cRIO with cRIO2 program

Wow, that really sucks up the memory doesn't it?

The project requires 28 MB of RAM.
17MB of that is just the Auto vi.

An FRC II has ~72MB available after the OS and other NI software load.
An FRC I has ~26MB available after the OS and other software.

It only leaves 44 MB free on an FRC II, and blows away an FRC I.

The biggest problem is the repeated references to the same sub vi's such as Motor Set Output.
The VI Properties->Execution (under File) are preallocating a clone for each instance. You probably want to change that to "Share clones between instances" to preserve memory.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 26-03-2012 at 21:53.
Reply With Quote
  #10   Spotlight this post!  
Unread 26-03-2012, 17:58
marccenter's Avatar
marccenter marccenter is offline
Registered User
FRC #3548 (RoboRavens2)
Team Role: Coach
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Royal Oak
Posts: 406
marccenter has a spectacular aura aboutmarccenter has a spectacular aura about
Unhappy Re: Unable to run cRIO with cRIO2 program

Mark,
Thanks for analysis - what I expected - memory hog with 4 copies of autonomous program structure. Can you make a recommendation of how to restructure the autonomous part? I tried a partial conversion to flat sequences with just one parameter sequence for Motor 9 but Labview complained profusely so I gave up that strategy for the moment.
__________________
Marc Center
FIRST FRC Mentor/Coach - Team 3548 Royal Oak RoboRavens#2 - on Sabbatical 2017 season
marc.center@gmail.com
Mobile: 248-255-7377
Reply With Quote
  #11   Spotlight this post!  
Unread 27-03-2012, 22:57
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,731
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: Unable to run cRIO with cRIO2 program

I tend to think differently and not break auto into one second increments, but there's no problem with doing it you way you've chosen to. You just need to minimize the duplicate copies of code. What you've done can be made over into a sequence, but it'd pretty much look the same.

Here are my suggestions to cut the memory way down (to ~10MB altogether).
Open up Auto:

1) Double click on one (only need to do one and the rest will follow) Motor Set Output to open it up, choose File->VI properties and go to the Category: Execution. Choose "Reentrant execution" and "Share clones."

2) Do the same for Tank Drive and Relay Set.

3) Get rid of the error messages (the drive train name has an extra space in Disabled), that are maxing out your cRIO CPU utilization. That can cause a problem linking to the field while Disabled.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 27-03-2012 at 23:01.
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 05:34.

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