Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Problem with Relay Channels on 2nd DIO Module (http://www.chiefdelphi.com/forums/showthread.php?t=97742)

conwill345 11-10-2011 18:34

Problem with Relay Channels on 2nd DIO Module
 
1 Attachment(s)
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!

Joe Ross 11-10-2011 18:59

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

conwill345 14-10-2011 17:26

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!

EHaskins 15-10-2011 00:51

Re: Problem with Relay Channels on 2nd DIO Module
 
1 Attachment(s)
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.


All times are GMT -5. The time now is 22:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi