09-26-2014 08:13 PM
As I already read here in several posts that there are two methods to use matlab code in labbview. But I am having some following problems.
Math Script (LabView)
If I create MATLAB user define function and if it contains "bi2de" MATLAB built in function, will I am able to call MATLAB user define from LabView Math script or not. I tried but received error "Unknown symbol on line xx column yy:bi2de"
MATLAB Script VI (LabView):
Will I am able to call MATLAB user define function from LabView Matlab Script node. I tried to call but receive error "error 1050 undefined function"
Note: I changed the path of labview mathscript from Tools >>>Option >>>Math script.
I have so much MATLAB code mostly user define functions but these functions contain many matlab built-in functions like bi2de or de2bi etc. I want to know is there any way I can call my matlab user define functions from labview.
Please guide.
Thanks
JK
09-27-2014 02:03 AM
Hi Joseph,
The first question would be, why won't you create your own functions in LabVIEW by creating a VI library of your own? This way you will have your own library of LabVIEW code for smaller tasks. Just drag and drop your functions/blocks to the main program and then you can embed your main MATLAB code and output results.
As you have mentioned that "bi2de" is a MATLAB function which you would be using couple of times in your code. If you know what this function does and how, you could create your own VI by using polymorphic functions and save this as subVI in your project.
Regards.