LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Have a problem opening a VI calling a C++ program

I tried opening the VI but even after configuring the imaq to call the dll files, I still cannot run. If I open the C file with Dev C++, I can't run the coding too. Is it because I do not have Open CV libraries inside DevC++? I tried adding the libraries to DevC++ but after an hour trying, I got the error message: "Source file not compiled" Beginner guy here. Any help is really appreciated. The file is below here.

0 Kudos
Message 1 of 4
(2,977 Views)

@Cres2608 wrote:

I tried opening the VI but even after configuring the imaq to call the dll files, I still cannot run. If I open the C file with Dev C++, I can't run the coding too. Is it because I do not have Open CV libraries inside DevC++? I tried adding the libraries to DevC++ but after an hour trying, I got the error message: "Source file not compiled" Beginner guy here. Any help is really appreciated. The file is below here.


The "KalmanFilter_DLL.dll" which is provided for the VI is only a wrapper for Open CV. So your VIs cannot find some missing DLLs, like the "opencv_video249.dll".

 

Here is some more info:

http://forums.ni.com/t5/Machine-Vision/Using-OpenCV-library-in-LabVIEW/m-p/743124/highlight/true#M18...

http://www.ni.com/white-paper/53072/en/

 

Hmm, I guess you need to install Open CV, so you will get these missing libraries. Did you install it yet on your PC?

https://sourceforge.net/projects/opencvlibrary/files/opencv-win/3.2.0/opencv-3.2.0-vc14.exe/download

0 Kudos
Message 2 of 4
(2,944 Views)

I have installed it but for some reason DevC++ can't recognise or use it? I tried changing the compiler options in DevC++ but no changes..currently trying out visual basic to try to run the code

0 Kudos
Message 3 of 4
(2,940 Views)

That example is supposed to show how to run a VI using those dlls. You do not need to do anything with that "KalmanFilter_DLL.cpp" file I guess, it is just there for the function definitions. The VI only needs the "KalmanFilter_DLL.dll", and those Open CV dlls which are referenced in it.

0 Kudos
Message 4 of 4
(2,935 Views)