10-25-2012 03:50 AM
Hallo everyone,
I have a function written in Matlab that does some calculations, the final result which is a number should be sent to LabVIEW to do something else. I want to know what is the best method to do this, ActiveX, TCP/IP or something else. why do I need this? because both programms were developed apart from each other, but know should be connected and it would take more time to rewrite either one in another software.
Thanks in advance!
10-25-2012 04:52 AM
Hi Valdi
There is a presentation available here which discusses LabVIEW and Matlab interoperability.
There is also the 'MATLAB script node' VI available to place on your block diagram which 'calls the MATLAB(R) software to execute scripts'
I hope this helps solve your problem.
Kind Regards
10-25-2012 05:24 AM
Thanks! but the thing is that my Matlab code is some hundred lines, sooooo it would be very difficult and tiring to put such code in a script node!
10-25-2012 06:03 AM
Hi Valdi
Have you tried right clicking on the MATLAB script node, selecting import and choosing your matlab function file?
Kind Regards
11-15-2012 03:22 AM
Ive tried but it doesnt help. My matlab code is extremely complicated its all about fuzzy logic stuff and the labview program communicates with a microcontroller to control a pump.
to make it simple, Ive 2 programms one in Labview and the other in Matlab, i want to give the inputs of the "matlab code" in LabVIEW, then matlab code works, then the result is delivered to Labview to do sth else. does anybody have any idea how to do this or is it even possible?