LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Do I need to include IMAQ VIs as dynamic VIs when creating MEX files

This is a simple question to experienced Math Interface Toolkit (MIT) users. The MEX files that I create with the help of MIT are supposed to take a filename (input), and capture an image using the camera and save it to disk with the given filename. There is no return/output back to Matlab from this MEX file. I heavily use IMAQ VIs in the creation of the MEX file, the question is DO I NEED TO INCLUDE THE IMAQ VIs AS DYNAMIC VIs WHEN CREATING THE MEX CODE? Many thanks, Adarsh
0 Kudos
Message 1 of 2
(2,197 Views)

Hi Adarsh,

 

Here's the explanation for why you would use dynamic VIs:

Use the Dynamic VIs tab to add dynamic VIs to the MEX-file if the VI you are converting into a MEX-file uses VI Server to dynamically call VIs. When you add a dynamic VI, the Math Interface Toolkit automatically includes it and all its subVIs and related files, such as menu files, in the MEX-file. LabVIEW also includes DLLs if the VI references the DLL using an absolute path.

Dynamic VIs will need to be used if the VIs make use of VI Server. To my knowledge, IMAQ VIs do not do this.

Stephen Meserve
National Instruments
0 Kudos
Message 2 of 2
(2,178 Views)