|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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! Last edited by conwill345 : 11-10-2011 at 18:57. |
|
#2
|
||||||
|
||||||
|
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
|
|
#3
|
||||
|
||||
|
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! |
|
#4
|
||||
|
||||
|
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|