Quantcast
Channel: Machine Vision topics
Viewing all articles
Browse latest Browse all 1268

LV DLL in c++ throws "Not an Image" error

$
0
0

Hi,

I need to export my labview inspection to dll. After building the dll, I tried to run it in c++ but it failed with "Not an Image" error. I simplified it to following code:

Image* img = imaqCreateImage(ImageType::IMAQ_IMAGE_U8, 0);
imaqReadFile2(img, "C:/Users/irt/Pictures/5_p_47356.jpg",NULL, NULL, NULL);
auto err = NI_Vision_Development_Module_IMAQInverse((uintptr_t*)img);

It fails with the same error.

 

What i'm doing wrong?


Viewing all articles
Browse latest Browse all 1268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>