Go to Post In engineering, it's important to use the appropriate tools and not more resources than are required. - AdamHeard [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2012, 18:31
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
cRIO Module/Channel Allocation Error

The cRIO is loaded with Java and updated to the latest version which I believe is v43. There is specifically an issue with running the constructor instantiating objects on the modules for secondary module slots. We have the cRIO FRC I, the original cRIO model for FRC. I am actually trying to run the 2011 competition robot as a programming practice bot.

I get a reallocation error stating that the channel and slot is already being used. This occurs for both our digital module in slot 6, and the solenoid module in slot 7. We probably will need two digital sidecars again this year so solving this problem early is ideal. The digital module in slot 2 runs fine, motors connected to it spin fine on joystick input and no significant error pops up.

I have tried changing slot # and looking through the WPILibJ documentation but can find anything to solve the problem. I cannot find anything online or on Chief Delphi so I am hoping for some suggestions of things to try.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2012, 18:38
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 992
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: cRIO Module/Channel Allocation Error

If you are trying to access those modules by referring to them as module "2" it sounds like a Java bug. I recommend entering it in the Tracker on the WPILib project, with details on what type of object you tried to open and the message you got.
Reply With Quote
  #3   Spotlight this post!  
Unread 13-01-2012, 20:06
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
Re: cRIO Module/Channel Allocation Error

Remember, this year no slot numbers are used in constructors, only module numbers, 1 and 2. slots 1-3 are modules 1 and 5-7 are module 2.
__________________
Attending: MN Duluth Regional
Reply With Quote
Reply


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 00:40.

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