Help! How can I call the Matlab file with toolbox (matlab 7.1) in labview 8.6?

Hello

I developed a file matlab to optimize a system, it's Toolbox. Entries should be in Labview but also the outputs should be included in the labview graph.  The results include arrays. CVI is not installed. My labview is version 8.6. MATLAB is version 7.1.

(1) is the version of labview and matlab questions in this problem?

(2) what is the best solution? Matlab script? DLL? Active X?

(3) if I could use matlab script, I define the type of each variables in labview, including those of the code?

Thank you!

Jessie

Step 1: Learn patience. This forum provides no immediate technical assistance. It is composed mainly of volunteers, and most of us have full-time jobs.

(1) is the version of labview and matlab questions in this problem?

Not really.

(2) what is the best solution? Matlab script? DLL? Active X?

Any of these will work. If you want to use the script, then you must use the Matlab Script node. This allows you to enter the Matlab code directly in the node, or you can call scripts that you have on your file system. This method requires that you have MATLAB hand whole on the target computer. If you create a DLL Matlab, then you use the node library function call and call the DLL as any other DLL. This method simply requires that you have the Matlab Runtime on the target computer.  I assume when you say that you're referring to writing your own ActiveX ActiveX component?

(3) if I could use matlab script, I define the type of each variables in labview, including those of the code?

I don't know what you mean by defining each variable type. You need to create the entries and exits on the Script node Matlab, so you can pass data between LabVIEW and Matlab environment. The help of LabVIEW contains more information on the use of the Matlab Script node. There are also some examples with LabVIEW.

Tags: NI Software

Similar Questions

Maybe you are looking for