Go to Post It is the team that they build that is the important accompliishment.. - Wayne C. [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 16-01-2015, 20:10
gaut1234 gaut1234 is offline
Registered User
AKA: Gautam Prabhu
FRC #0972 (Iron Claw)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Los Gatos
Posts: 4
gaut1234 is an unknown quantity at this point
IndexOutOfBoundsException with NI Vision

We have been using an axis M1013 IP camera for our vision system this year. We slightly modified the Axis Camera example program to save pictures the camera takes to the roboRIO for debugging purposes. We have repeatedly gotten "IndexOutOfBoundsException" with our call to the HSLImage class's "write" function. We have tried a lot of debugging and I think that the problem lies with ByteBuffer allocation in the roboRIO (this happens internally in WPILIB's writing function) but we have not fully confirmed this. In addition, the example axis program does not work as expected - we get no image on the dashboard. We can view the camera from the SmartDashboard and we can use the getImage() function without exceptions.

Thank you for your help.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2015, 00:26
fsilberberg fsilberberg is offline
WPILib Developer
AKA: Fred Silberberg
FRC #0190
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Redmond
Posts: 146
fsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura aboutfsilberberg has a spectacular aura about
We should have a new wpilib release out within the next day or two that will hopefully fix the problem, please let us know if that doesn't fix it.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-01-2015, 17:29
gaut1234 gaut1234 is offline
Registered User
AKA: Gautam Prabhu
FRC #0972 (Iron Claw)
Team Role: Leadership
 
Join Date: Jan 2015
Rookie Year: 2014
Location: Los Gatos
Posts: 4
gaut1234 is an unknown quantity at this point
Re: IndexOutOfBoundsException with NI Vision

Thank you! We used the 01-16-15 version and it worked.
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 10:23.

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