Go to Post I guess this means we have to work on becoming super-flexible and always be ready for our close-ups at robotics from now on? - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > 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 23-01-2012, 14:01
edthetoad edthetoad is offline
Registered User
no team
 
Join Date: Jan 2012
Location: Here
Posts: 7
edthetoad is an unknown quantity at this point
Multiple cRIO's-Power and Communication

Our team has decided that we will be using a second computer on our robot because we are unable to run complicated drive code and vision processing at the same time. When we do this our code does not always deploy, freezes up, and has bad performance, and we have only just started working on drive. I have looked into using a second FRC cRIO (old version). We would see that 2 cRIO's are legal for the robot but we are wondering what the applicable cost of the cRIO is. We also are going to power the cRIO with a DC-DC voltage converter from 12 to 24 volts. We also try to communicate between the two of them using UDP. Is there anything we should be aware of if we attempt this? Do you know of any other teams who have done this?
Reply With Quote
  #2   Spotlight this post!  
Unread 23-01-2012, 17:34
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: Multiple cRIO's-Power and Communication

Quote:
Originally Posted by edthetoad View Post
We would see that 2 cRIO's are legal for the robot but we are wondering what the applicable cost of the cRIO is.
The FRC discount price for a cRIO FRCII chassis is $285.
Reply With Quote
  #3   Spotlight this post!  
Unread 23-01-2012, 17:42
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
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: Multiple cRIO's-Power and Communication

Make sure to set them as different team numbers (so they have different IPs), stay away from UDP ports 1100-1200, and make sure to either put your code in Disabled or forgo the FRC framework entirely (preferred).
Reply With Quote
  #4   Spotlight this post!  
Unread 23-01-2012, 17:48
edthetoad edthetoad is offline
Registered User
no team
 
Join Date: Jan 2012
Location: Here
Posts: 7
edthetoad is an unknown quantity at this point
Re: Multiple cRIO's-Power and Communication

We are aware of the price of the new cRIO but we were wondering if the price for the old one was different and if we can use the discounted price. We also would like to know if anybody knows if there is a tutorial/example code for sending info via UDP between the cRIO and something else. We are able to send UDP out of a cRIO and receive it on a computer but are unable to get it to continuously send or receive from a cRIO. If anybody has any experience doing this some help would be appreciated.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-01-2012, 17:53
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Multiple cRIO's-Power and Communication

Quote:
Originally Posted by edthetoad View Post
We also would like to know if anybody knows if there is a tutorial/example code for sending info via UDP between the cRIO and something else. We are able to send UDP out of a cRIO and receive it on a computer but are unable to get it to continuously send or receive from a cRIO. If anybody has any experience doing this some help would be appreciated.
You'd do it the same way - the cRIO is just a little computer. You'd just have them both listening on UDP port x for data sent by the other. I can post some examples in LabVIEW, if you'd like.
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
Reply With Quote
  #6   Spotlight this post!  
Unread 23-01-2012, 18:11
edthetoad edthetoad is offline
Registered User
no team
 
Join Date: Jan 2012
Location: Here
Posts: 7
edthetoad is an unknown quantity at this point
Re: Multiple cRIO's-Power and Communication

If you could show me some lab view examples for how to set up something for listening that would be very helpful. I know how to do this in java, but my attempts in lab view have not been very sucsessful.
Reply With Quote
  #7   Spotlight this post!  
Unread 23-01-2012, 18:22
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Multiple cRIO's-Power and Communication

I think you can use the discounted price. In the blue box under [R14] it says "Example: Special price discounts from National Instruments and Texas Instruments are being offered to all FIRST teams. The discounted purchase price of items from these sources would be used in the additional parts accounting calculations."

However, I don't think you can use the discounted price of an FRC-CRIO II when you are using the FRC-CRIO. The discounted price of the FRC-CRIO was $750 (with modules, I'm not sure it was available without modules). Unfortunately, this exceeds the $400 per item limit [R14].

I think the only legal way to use a cRIO as a co-processor is to use an FRC-CRIO II
Reply With Quote
  #8   Spotlight this post!  
Unread 23-01-2012, 18:44
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Multiple cRIO's-Power and Communication

It is really easy to bloat vision code. Before you go through the complexity of adding a second cRIO, I would take a good hard look at your vision code and make sure you can't fix it first.

A common mistake is to put vision and drive in the same loop, which slows the drive code to the same rate as the vision code. They belong in parallel loops, which forces the portion of your drive algorithm that is dependent on vision inputs to accept that they will run at different rates. If you split vision off to a separate cRIO but you do not solve that fundamental issue, you will not see any benefit from the exercise.

Last edited by EricVanWyk : 23-01-2012 at 18:47.
Reply With Quote
  #9   Spotlight this post!  
Unread 23-01-2012, 20:01
edthetoad edthetoad is offline
Registered User
no team
 
Join Date: Jan 2012
Location: Here
Posts: 7
edthetoad is an unknown quantity at this point
Re: Multiple cRIO's-Power and Communication

Oops! Some kids had tried to make a latching button but had using while loops instead of case structures. They had about 20 while loops that they forgot to delete and about 5 while loops inside of each other, all trying to do very strange boolean operations. Once we removed that, our vision code + drive was only 70% CPU usage...I guess there is no good reason to have 2 cRIO's!
Reply With Quote
  #10   Spotlight this post!  
Unread 23-01-2012, 22:11
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Multiple cRIO's-Power and Communication

Quote:
Originally Posted by edthetoad View Post
If you could show me some lab view examples for how to set up something for listening that would be very helpful. I know how to do this in java, but my attempts in lab view have not been very sucsessful.
So you may not need 2 cRIOS, but I'll still show you the quick UDP read example I wrote (I didn't have internet for a few hours - team meeting). Try something like this. I can explain what it does if you need.
Attached Thumbnails
Click image for larger version

Name:	Untitled.png
Views:	18
Size:	16.6 KB
ID:	11540  
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
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 11:53.

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