View Single Post
  #1   Spotlight this post!  
Unread 11-10-2011, 18:34
conwill345's Avatar
conwill345 conwill345 is offline
Student Programmer
AKA: Connor Willison
FRC #0708 (Hardwired Fusion)
Team Role: Programmer
 
Join Date: Jul 2011
Rookie Year: 2010
Location: Hatboro-Horsham High School
Posts: 11
conwill345 is an unknown quantity at this point
Problem with Relay Channels on 2nd DIO Module

Hello everyone,

We are working on an off-season project - a robot breadboard to be exact. We basically mounted a cRIO along with several motors and other necessary equipment on a plywood base, and are having a bit of trouble getting it to work the way we want it to.

We are trying to use two Digital Sidecars connected to two DIO modules, which are in cRIO slots 4 and 6. In our tests, we have found that we are able to use all PWM and DIO channels on both modules, but only the relay channels on the Sidecar attached to the module in slot 4. Whenever we try to allocate a channel on slot 6, we run into an AllocationException; the software thinks that something is already allocated for those channels even though we haven't touched them previously.

Attached is the source code for our project. We are currently trying to implement a scripting system for our robot, (the code is in the "scripting" package) but the meat of that system is not where our errors are occurring. Only when we attempt to create any objects using relay channels on slot 6 do we have problems, so please be aware that there may be unrelated errors in the scripting code.

We currently have all our problem code commented out:

lines 73-80 of Commands.java

---------
We suspect that this may be a lower-level crio problem, so someone who is knowledgable about the internals of the crio would be a big help!
Attached Files
File Type: zip src.zip (36.7 KB, 0 views)

Last edited by conwill345 : 11-10-2011 at 18:57.
Reply With Quote