03-29-2012 02:37 AM
Is it possible to integrate (import) a matlab file which uses special toolbox ( like hmm toolkit and neural network) into LabVIEW??
03-29-2012 03:09 AM
03-29-2012 03:34 AM - edited 03-29-2012 03:35 AM
One of the methods would be to create a .dll file out of the matlab model and pass parameters to the dll.
Other methods, if you are using simulink too, would be the use of Simulation Interface Toolkit from NI, or using the MathScript node if you have matlab based text program.
What kind of model are you actually looking to integrate with LabVIEW?
01-12-2014 05:10 PM
Hello,
I am working LABVIEW and MATLAB platform.I would like to intergrate matlab into labview.Is that possible?
If so please can you explain how can be done...
Thanks in advance.!
01-13-2014 07:22 AM
@yogesh
You need to give more details about your application.
Are you trying to use LabVIEW with Matlab development environment running in the background, or are you planning to deploy your application where Matlab/Simulink development environment won't be available?
01-16-2014 06:22 PM
Hello FraggerFox,
I am running matlab in one comuputer and Labview in another computer.The aim is to get a signal from the Matlab to Labiview
In Matlab i have set of codes which will peform some operation when i press push button that push button signal should be given to the labview so that it should start working LabView.
So that we can use ethernet communication between them but i dont have idea how will it work.....
01-16-2014 06:34 PM
In that case a really quick, dirty solution is to create a shared folder on the host computer, map it to a network drive on the other computer, then to write a file in that folder in the Matlab program which is then read in by LabVIEW program.
The more efficient method would use network sockets, which I believe is possible, but that involves more programming.
01-16-2014 07:15 PM
Thanks you so much for your response. From your explanation I understood that “You explained how to get access to the saved matlab file ” but my case is different.
I want to get online monitoring of matlab file (one motor is connected to matab file), Need to get some values from the matlab running environment to the LabVIEW environment.
So Matlab act as Master and Labview act as slave ...
01-16-2014 07:35 PM
When you say "one motor is connected to one matab file" - do you mean one .M file, or a MAT file ? In other words, is it a program or data?
The easiest way that I"ve come across to transfer data between different environments, is to write to an intermediate file. Be sure to write to a raw binary or text (dont use the Matlab 'save' command, that will save in MAT format, which I'm pretty sure is unreadable by LabVIEW). There is the problem of signalling the LabVIEW program when data is available, you could handle this by having the Matlab program could write to another file to indicate that data is availalbe, and the LabVIEW program could continuously poll this file to see if a value has been written. Then the LabVIEW program would read in the data file, and reset the signalling file.
01-16-2014 08:32 PM
Thank you so much for your response.I will work on it and get back to you ....