Go to Post An explanation of the reasoning behind design decisions will almost always result in a more thorough understanding of the solution than analysis alone can obtain. - Travis Covington [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 16-02-2013, 15:32
DCRich DCRich is offline
Mentor
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Steinert H.S., Hamilton NJ
Posts: 21
DCRich is an unknown quantity at this point
How to determine cRIO2 slot addresses

How do I reset the slot addresses from a cRIO to a cRIO2? In the cRIO,
The NI models were setup in slots 1, 3, 5 and the demo codes would only work if the models were in those slots.

In the cRIO2 the modules are in slots 1, 2, 3.

So the DIO module has moved from Slot 3 to Slot2 but how has the address changed and how to tell the WPI library to look for the DIO in a different slot?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2013, 15:38
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,717
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: How to determine cRIO2 slot addresses

The first module of a particular type is referenced in the code as "1", the second module of the same type is addressed in the code as "2".
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 16-02-2013, 17:30
DCRich DCRich is offline
Mentor
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Nov 2008
Rookie Year: 2006
Location: Steinert H.S., Hamilton NJ
Posts: 21
DCRich is an unknown quantity at this point
Re: How to determine cRIO2 slot addresses

Mark,

Thanks for the prompt reply. Unfortunately, it does not answer the question that I asked. I understand that if I use only 3 modules, an Analog, a Digital and A Solenoid, then each will be identified as module 1 of that type. If I add a second Digital then it will Module2. But, in an 8 slot cRIO the WPI library needs to know where to find DIO Module 2, will it be in slot 2, 4, 6 or 8?

Then if I write code for the 8 slot cRIO and DIO Module 2 is in slot 6, how do I tell the software that DIO Module 2 is in slot 4 in the cRIO II?
Reply With Quote
  #4   Spotlight this post!  
Unread 16-02-2013, 17:53
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,558
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: How to determine cRIO2 slot addresses

Quote:
Originally Posted by DCRich View Post
Then if I write code for the 8 slot cRIO and DIO Module 2 is in slot 6, how do I tell the software that DIO Module 2 is in slot 4 in the cRIO II?
It knows automatically.
Reply With Quote
  #5   Spotlight this post!  
Unread 16-02-2013, 18:46
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,717
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: How to determine cRIO2 slot addresses

Yea, the slots in the older cRIO are limited to the positions listed below, so the FPGA simply has to detect if the slot is occupied, and if it's occupied by the permitted module.
  • Slot 1 - Analog module (required)
  • Slot 2 - Digital module (required)
  • Slot 3 - Solenoid module
  • Slot 4 - unused
  • Slot 5 - Analog module
  • Slot 6 - Digital module
  • Slot 7 - Solenoid module
  • Slot 8 - unused
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
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 19: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