View Single Post
  #9   Spotlight this post!  
Unread 19-01-2012, 23:52
mikets's Avatar
mikets mikets is offline
Software Engineer
FRC #0492 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Bellevue, WA
Posts: 667
mikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of lightmikets is a glorious beacon of light
Re: 4-slot cRIO and default modules

Quote:
Originally Posted by RufflesRidge View Post
EDIT: Just saw your edit. You must put Analog, Digital, Solenoid in slots 1-3 on either cRIO. On the 4 slot, the 4th slot can be any module. On the 8 slot the pattern repeats with slots 507 with 4 and 8 left empty.
So again, just to make sure I understand it correctly. In theory, if I put three analog modules in the 8-slot cRIO, the first one in slot 1, the second one in slot 4 and the third one in slot 5 (I suppose this is still legal ). I can address them by:
Code:
Gyro(1, 1);    //Gyro in slot 1, channel 1
Gyro(2, 1);    //Gyro in slot 4, channel 1
Gyro(3, 1);    //Gyro in slot 5, channel 1
Does it sound right? If so, they should have called it "instance" instead of "moduleNumber".
__________________

Last edited by mikets : 19-01-2012 at 23:54.
Reply With Quote