Go to Post I think I need a bigger cup of coffee.... - JaneYoung [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 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
  #2   Spotlight this post!  
Unread 11-10-2011, 18:59
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,600
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Problem with Relay Channels on 2nd DIO Module

This sounds like it could be the following reported bug: http://firstforge.wpi.edu/sf/go/artf1332
Reply With Quote
  #3   Spotlight this post!  
Unread 14-10-2011, 17:26
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
Re: Problem with Relay Channels on 2nd DIO Module

Thank you!
Hopefully they'll correct this in the future, as it is a pretty serious bug. At least we know it isn't our fault now!
Reply With Quote
  #4   Spotlight this post!  
Unread 15-10-2011, 00:51
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: Problem with Relay Channels on 2nd DIO Module

This is a replacement for the relay class, which I believe corrected this issue for us. Simply replace all references to Relay which references to attached class.

Disclaimer: You use this at your own risk.
Attached Files
File Type: zip HackedRelay.zip (2.4 KB, 3 views)
__________________
Eric Haskins KC9JVH
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:39.

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