Go to Post please remember that the children we are trying to positively influence do read these forums. - Amanda Morrison [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 28-01-2012, 15:45
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Can't talk to digital module with old cRIO

I am using the old FRC cRIO, and am having trouble getting it to talk to the digital sidecar, and probably the NI 9403 digital module itself. The module shows up as OK in the 2012 imaging tool. The cRIO is running "FRC_2012_v43".

I have the module in slot 2 of the cRIO, but have also tried slots 4 and 6. Sometimes, and I can't figure out the pattern, I get an ArrayIndexOutOfBoundsException from DigitalModule.java:68.

I am using Java, and am testing the module with
Code:
public static final DigitalInput dio13 = new DigitalInput(2, 13);
(I have a switch plugged into that channel)

On bootup, this
Code:
[cRIO] Digital module 2 is not present.
[cRIO] Digital module 2 is not present.
[cRIO] DIO LoopTiming: 260, expecting: 261
[cRIO] Digital module 2 is not present.
[cRIO] Digital module 2 is not present.
[cRIO] Default IterativeRobot.disabledInit() method... Overload me!
and can only get false from the switch.

Any help is greatly appreciated.

[edit]More info:
On the digital sidecar the BAT, 5V, and 6V LEDs are all on. When disabled the RSL does a slow blink, when enabled does a long-on, short-off blink.

Last edited by LukeS : 28-01-2012 at 16:10. Reason: more info
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2012, 17:55
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Can't talk to digital module with old cRIO

I don't have much experience with C++ FRC programming, but you need to reference module 1 in your code. The digital module #1 is in the cRIO slot 2. Slot != Module.

Posted from my android.
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2012, 18:47
LukeS LukeS is offline
4272 mentor, 1024 alumnus
AKA: Luke Shumaker
FRC #4272
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Indianapolis, IN
Posts: 60
LukeS is an unknown quantity at this point
Re: Can't talk to digital module with old cRIO

Thank you! I don't know what was causing the initial issue (since originally I wasn't specifying the module number), but knowing that module!=slot has fixed it now.
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 23:03.

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