View Single Post
  #1   Spotlight this post!  
Unread 08-02-2012, 00:41
el-zoroo el-zoroo is offline
Chief Operating Officer
AKA: Zuhair
FRC #2374 (Crusaderbots)
Team Role: Leadership
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Beaverton, OR
Posts: 13
el-zoroo is an unknown quantity at this point
Initialize Module on Non-Default Slot

We have an extra Solenoid breakout we are trying to add. One is wired up for 24V and the other for 12V, and are having trouble initializing the second one. The first one is working perfectly fine. We encountered the same problem with the Analog breakout.

We initialize it like so, in Java:

Code:
Solenoid solenoid = new Solenoid(6,4); //Slot 6, Channel 4
Upon running the code, it immediately warns us that "Solenoid module 6 is not present" (or something to that effect). Subsequently, it throws an AllocationException.

Any help on initializing a module on its non-default slot?