Go to Post Engineering fundamentally comes down to problem solving, and if the students can't get excited and inspired by the problem solving process because someone has spoon fed them a solution, then nobody wins. Give a man a fish, he'll eat for a day. Teach a man to fish, he'll eat for a lifetime. - kevinw [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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, 1 views)

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


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

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