LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

importing matlab model file to labview

Dear All, Can anyone tell me how to import matlab model file(.mdl) to LabView?

Waiting for your reply.

Message 1 of 17
(7,793 Views)

Have you had a look at the LabVIEW Control Design and Simulation Module? In there, you can use the Simulation Translator to convert a .mdl file, developed in The MathWorks, Inc. Simulink simulation environment, into a LabVIEW VI that consists of a simulation diagram containing LabVIEW functions, wires, and simulation subsystems corresponding to the contents of the .mdl file. Search on ni's website for more help on this.

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
Message 2 of 17
(7,774 Views)

If you have full develop system or compatible you may use the MathScript Node. If this does not do the trick, you also have the MATLAB Script Node option. Use your help function and search for "MathScript Node", and "MATLAB Script Node option" If you do not find anything your Labview version is to old.

I also think you have an option in matlab for building DLLs that Labview may call, but I not sure if this is correct.



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 3 of 17
(7,768 Views)
The Matlab script node and/or the MathScript node will do nothing for .mdl files. These are model/simulation files created with Simulink and you need to use Control and Design Simulation Module as Adnan mentioned.
0 Kudos
Message 4 of 17
(7,766 Views)

I think what you are actually looking for is the Simulation Interface Toolkit (SIT) which is designed specifically to interface with other simulation software (ie Simulink)

 

Heres an example

Message Edited by Chris_VH on 04-03-2009 09:20 AM
Chris Van Horn
Applications Engineer
0 Kudos
Message 5 of 17
(7,762 Views)

Chris_VH wrote:

I think what you are actually looking for is the Simulation Interface Toolkit (SIT)


Good point. Forgot about that toolkit. Less expensive too. Smiley Wink

0 Kudos
Message 6 of 17
(7,758 Views)
Yeah, its about 2000 dollar less. And if you're only going to use CD SIM to convert your simulink model, you might as well save the money and just use SIT. They are both pretty powerful though.
Chris Van Horn
Applications Engineer
0 Kudos
Message 7 of 17
(7,758 Views)

Dear All,

             Thank you for your help regarding previous topic. I have one more problem. Please tell the name of connector for 6024E (which is a PCI) to laptop( which needs USB)

 

Warm Regards,

Yogesh.

0 Kudos
Message 8 of 17
(7,620 Views)

I don't understand your question. Are you saying you have a PCI-6024E and want to plug it into your laptop? You can't. You need to plug that card into a PCI slot, and unless your laptop provides a way to do that (I don't know of any that do) you either have to buy an external PCI chassis, or use a different card that can be plugged into the USB port.

0 Kudos
Message 9 of 17
(7,603 Views)

Dear All,

             I have sensed AC voltage signals of 3 volts, 50 Hz. I want to do mathematical processing on that voltage signal such as addition with other analog voltage signal, multiplication by a number (say 32.5) and pass it thourgh PI controller and then send it to analog output port. Can you send me an example which suits my above requirement.

 

Also I want to know whether we can create a executable file of vi?(which will not require labview). Is it possbile?

 

0 Kudos
Message 10 of 17
(7,490 Views)