View Single Post
  #1   Spotlight this post!  
Unread 04-02-2016, 20:26
alambert14's Avatar
alambert14 alambert14 is offline
Student Programmer
AKA: Abby Lambert
FRC #2035 ("Rockin" Bots)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Carmel
Posts: 14
alambert14 is an unknown quantity at this point
VisionException Unknown Error

We have been working on vision code with Java, and we are trying to save an image to the roboRIO. Following what we did last year, we connected to the roboRIO with SFTP (filezilla), and then created a folder in the root directory called "image" and placed a picture called test.jpg.

However, when we try to write the file using

Code:
NIVision.imaqWriteJPEGFile(frame, "/image/test.jpg", 100, colorTable);
frame is our image to be written.

However, when we run the code, we get an error on that line saying: "Unhandled exception: VisionException [com.ni.vision.VisionException: imaqError: -1232673104: Unknown error] at [com.ni.vision.NIVision._imaqWriteJPEGFile(Native Method), com.ni.vision.NIVision.imaqWriteJPEGFile(NIVision. java:25654)" on the line of code mentioned above.

It is hard to figure out what is wrong since it is an "unknown" error; however, we believe it has something to do with the file path. Has anyone seen this error before and/or know how to fix it? Anything helps, thanks!

Last edited by alambert14 : 04-02-2016 at 21:06.
Reply With Quote