Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Sample Image on the roboRIO cannot be found (http://www.chiefdelphi.com/forums/showthread.php?t=134465)

Team3205 12-02-2015 20:46

Sample Image on the roboRIO cannot be found
 
We get an error on the FRC DriverStation when we try to enable the robot and the code looks for the image on the roboRIO:

ERROR Unhandled exception java.lang.IndexOutofBoundsException at [java.nio.Buffer.checkIndex(Buffer.java:546), ...

called at line NIVision.imaqReadFile(frame, "/home/lvuser/SampleImage/image20.jpg");

The image is in that path on the roboRIO and we are writing in java any input would be greatly appreciated. Thanks in advance.

RufflesRidge 12-02-2015 20:51

Re: Sample Image on the roboRIO cannot be found
 
As described in the comments of the sample program you need to copy the sample image over via FTP if you want to test using it.

Team3205 12-02-2015 22:39

Re: Sample Image on the roboRIO cannot be found
 
Ruffles I put the images onto the roboRIO over FTP and I double-checked it, the whole problem originates from the code being unable to find it on the roboRIO even though it is there.


All times are GMT -5. The time now is 01:46.

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