LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use matlab function with labview?

Solved!
Go to solution

Hello,

 

I just want to use some matlab functions like floor(),ones()... in my labview code, who can tell me how to do it?

 

 I want to only install MCR in my PC, so MATLAB script node can not work because it need matlab installed. 

Thanks

0 Kudos
Message 1 of 3
(2,663 Views)
Solution
Accepted by topic author tanggio

floor() exists on the standard labview pallet already and the ones() function would be fairly simple to reproduce. If you only need a few basic functions repost asking for direction on recreating those specific methods. However, you're right - there is not a direct way to use compiled matlab code in labview without full matlab and the math script nodes. If you're really desparate to reuse some some exisiting IP there are C++ alternatives that implement many of the same methods and syntax as matlab (http://arma.sourceforge.net/faq.html). I'm fairly sure there are other tools that attempt to translate matlab code into pure c functions, both of which can be called via a DLL from within labview: https://forums.ni.com/t5/Developer-Center-Resources/Calling-C-C-DLLs-from-LabVIEW/ta-p/3522488

 

Alternatively, here is an all NI linear algebra solution: https://www.ni.com/en/support/downloads/tools-network/download.labview-multicore-analysis-and-sparse...

 

0 Kudos
Message 2 of 3
(2,654 Views)

Thanks,I am clear.

0 Kudos
Message 3 of 3
(2,633 Views)