Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 rating:
 1 out of 5     Rate this Document

How Do I Use the DataPlugin for The Mathworks, Inc. MATLAB® software in LabVIEW?

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I downloaded the DataPlugin for The MathWorks, Inc. MATLAB® software and I am able to use this in DIAdem. The documentation also says that I can use this with LabVIEW. I have found that no additional VIs were added to my functions palette. Am I able to write to a .mat file with this DataPlugin?

Solution:
The DataPlugin does not install any additional VIs to your functions palette. It instead only adds functionality to previously existing VIs. To read or write to a .mat file, you will need to use the storage VIs that are located in the functions palette under Programming»File I/O»Storage. You will need to open a reference to the file, read or write to it, and then close it with the storage express VIs.

The file name of the DataPlugin (MATLAB) needs to be an input to the Open With Root VI. This creates a reference used by the storage VIs to allow you to interface with the .mat format.


This basic format can be applied to other DataPlugins as well. A sample VI showing how to write data to a .mat file can be found in the attachments section.

MATLAB® is a registered trademark of The MathWorks, Inc.

Related Links:
Developer Zone: DataPlugin for the MathWorks, Inc® Software
Developer Zone: DataPlugins: Supported Data Formats

Attachments:
LabVIEW Write To MAT LV86.vi




Report Date: 06/18/2009
Last Updated: 06/23/2009
Document ID: 4YHFC5PI

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit