View Single Post
  #9   Spotlight this post!  
Unread 12-02-2012, 11:26
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: Using 2 digital side cars

Quote:
Originally Posted by JByrd View Post
when you construct your inputs and outputs do you have the code written with the module number like this:

DigitalInput input = new DigitalInput(2,1)

(for a digital input in port 1 on the module on slot 2 of the cRIO)

or

DigitalInput input = new DigitalInput(4,1)

(for a digital input in port 1 on the module on slot 4 of the cRIO)
If you do have the program written like this, fix it. You shouldn't be referencing slot numbers in the code. The first digital module (in slot 2) is module 1. The second digital module (in slot 4 of a 4-slot cRIO or slot 6 of an 8-slot cRIO) is module 2.