Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   IndexOutOfBoundsException with NI Vision (http://www.chiefdelphi.com/forums/showthread.php?t=133018)

gaut1234 16-01-2015 20:10

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.

fsilberberg 17-01-2015 00:26

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.

gaut1234 17-01-2015 17:29

Re: IndexOutOfBoundsException with NI Vision
 
Thank you! We used the 01-16-15 version and it worked.


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

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