From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to call a DLL (generated by MATLAB) in LabWindow CVI?

Solved!
Go to solution

The function, for example:

function value = my_add(a, b);

value = a + b;

end;

Use the deploytool in MATLAB generate my_func.h my_func.lib and my_func.dll。I want to konw how to call the DLL in CVI?  Is there anyone who konws how to make it?

0 Kudos
Message 1 of 2
(2,450 Views)
Solution
Accepted by Will_Fu

Hello Will_Fu, I'm not using Matlab but since your question seems more aimed to how to use a DLL in CVI I can suggest you to look at this white paper:

FAQ: Using Dynamic Link Libraries with NI LabWindows™/CVI™

 

Related to Matlab .DLL, a quick search in the forum gave the following discussions that may offer you additional specific hints; you may find some more:

Importing Matlab DLL into LabWindows/CVI

How to use a Matlab DLL in CVI?



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 2
(2,414 Views)