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,


Posting your code (or a sample that produces the error) will help people help you.

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

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

I think your code is supposed to be

NIVision.imaqWriteJPEGFile(image, fileName, quality, colorTable);

for saving an image

Have you seen this post?

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.

Here is a link to the NIVision API (which looks like it should be up to date):

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