Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FRC Control System (http://www.chiefdelphi.com/forums/forumdisplay.php?f=176)
-   -   How to determine cRIO2 slot addresses (http://www.chiefdelphi.com/forums/showthread.php?t=113681)

DCRich 16-02-2013 15:32

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?

Mark McLeod 16-02-2013 15:38

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".

DCRich 16-02-2013 17:30

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?

Joe Ross 16-02-2013 17:53

Re: How to determine cRIO2 slot addresses
 
Quote:

Originally Posted by DCRich (Post 1234490)
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.

Mark McLeod 16-02-2013 18:46

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


All times are GMT -5. The time now is 19:05.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi