08-12-2013 09:07 PM
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
Solved! Go to Solution.
08-12-2013
10:01 PM
- last edited on
04-15-2025
04:37 PM
by
Content Cleaner
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...
08-13-2013 12:14 AM
Thanks,I am clear.