Go to Post Sometimes the team really needs the kid, and sometimes the kid really needs the team. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2015, 20:46
Team3205 Team3205 is offline
Registered User
FRC #3205
 
Join Date: Feb 2014
Location: Concord
Posts: 13
Team3205 is an unknown quantity at this point
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.
  #2   Spotlight this post!  
Unread 12-02-2015, 20:51
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
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.
  #3   Spotlight this post!  
Unread 12-02-2015, 22:39
Team3205 Team3205 is offline
Registered User
FRC #3205
 
Join Date: Feb 2014
Location: Concord
Posts: 13
Team3205 is an unknown quantity at this point
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.
Closed Thread


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 01:46.

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