Go to Post All I wanted was a game hint.... :( - JohnBoucher [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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?
 


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 20:17.

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