Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Java NIVision imaqSavePattern error (http://www.chiefdelphi.com/forums/showthread.php?t=134028)

theonlydvr 05-02-2015 13:37

Java NIVision imaqSavePattern error
 
Hey all,

I've been trying to use the NIVision library for vision processing on our robot however I constantly get undefined symbol errors when I try to call certain methods. The major one in question is NIVision.imaqSavePattern. Does anyone know why this happens? I read something about bad java wrappers but could it wasn't very clear.

Thanks for any help,

Evan

mmaunu 05-02-2015 15:23

Re: Java NIVision imaqSavePattern error
 
Posting your code (or a sample that produces the error) will help people help you.

theonlydvr 05-02-2015 15:48

Re: Java NIVision imaqSavePattern error
 
At the moment, I do not have access to the code but in its current form it is built off of the Intermediate Vision sample class with just the added line

Code:

    NIVision.imaqSavePattern(frame, "image.jpg");

Fauge7 05-02-2015 23:38

Re: Java NIVision imaqSavePattern error
 
I think your code is supposed to be
Code:

NIVision.imaqWriteJPEGFile(image, fileName, quality, colorTable);
for saving an image

mmaunu 06-02-2015 00:34

Re: Java NIVision imaqSavePattern error
 
Have you seen this post?
http://www.chiefdelphi.com/forums/sh...d.php?t=132494

It seems that they did update the NIVision wrappers and this was done to address some of the same issues that you are facing. However, if you have the latest version of the Java API from WPI, you should have the updates that they reference. You can check to see if your libraries are up to date by looking at this page and then checking the version numbers on your Eclipse plugins.
http://wpilib.screenstepslive.com/s/...ware-revisions

Here is a link to the NIVision API (which looks like it should be up to date):
http://first.wpi.edu/FRC/roborio/rel...1NIVision.html

It does not list the method that you are trying to call but it does list the method that Fauge7 referenced...


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

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