How do I Transfer Data Between The MathWorks, Inc. MATLAB® Software Development Environment and LabVIEW?Hardware: PXI/CompactPCI>>Controllers
Problem: I need more information about sharing data between LabVIEW and The MathWorks, Inc. MATLAB® software environment. Solution: If you are a user of the MATLAB® software and want to import or export any data (for example, matrices or vectors) between the MATLAB® environment and LabVIEW, you have several options. Prior to LabVIEW 5.1, the only way to transfer data between these two environments were to use the Save and Load functions, discussed below. LabVIEW 8.0 introduced MathScript, a loosley-typed language that is synonomous with most text-based file environments. MathScript is licensed separately but can be utilized from within LabVIEW so that you can combine graphical programming with math-oriented textual programming. See the related links below for more information on MathScript. LabVIEW 5.1 introduced the MATLAB® Script Node. The MATLAB® Script Node makes ActiveX calls to MATLAB® software from within LabVIEW. This requires that a valid license of MATLAB® be installed on the same machine as LabVIEW. More information on the MATLAB® Script Node can be found in the related links below. For all versions of LabVIEW, data transfer between the two environments can be performed by saving the data in a file using the MATLAB® software and reading it directly from LabVIEW, or vice versa. In the MATLAB® environment, the Save command allows you to save data in binary (*.mat) or ASCII format. The Load command allows you to read the data back into the program. ASCII Format Complete the following steps if you want to import or export data between LabVIEW and the MATLAB® environment, the process is straightforward as long as you are using ASCII format. From the MATLAB® environment to LabVIEW
Complete the following steps if you want to import or export data between LabVIEW and MATLAB®. From the MATLAB® environment to LabVIEW
Related Links: KnowledgeBase DIRECT-44PMH6: How do the MATLAB® Script Node and the HiQ Script Node Work? KnowledgeBase DIRECT-44PMLT: Debugging My Script Written in The MathWorks, Inc. MATLAB® Language Syntax (or HiQ) from LabVIEW? KnowledgeBase DIRECT-44PMKQ: Do I Need The MathWorks, Inc. MATLAB® software or HiQ to Use the Script Node? LabVIEW 8.2 Help: MATLAB® Script Node Products & Services: NI LabVIEW MathScript Developer Zone Tutorial: Developing Algorithms Using LabVIEW MathScript: Part 1 – The LabVIEW MathScript Node Attachments:
Report Date: 09/29/1997 Last Updated: 11/18/2009 Document ID: 11SF83W0 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
