MATLAB® DataPlugin

Publish Date: Jan 22, 2020 | 32 Ratings | 3.19 out of 5 | Print | 9 Customer Reviews | Submit your review

This DataPlugin supports the reading/importing and writing/exporting of data files created by The MathWorks, Inc. MATLAB® Software.

MAT files are written by MATLAB® from The Mathworks. This DataPlugin allows to import and export level 4, 5 and 7 MATLAB® files, and directly read *.MAT files.

If you want to export files to level 4, please make sure the "Description" property of Root begins with "MATLAB 4.0", as the default export formats is level 5.


A valid MATLAB variable name starts with a letter, followed by letters, digits, or underscores. When creating a variable name (group name + channel name), make sure it starts with a letter.


This DataPlugin is available for 32-bit and 64-bit applications.


This DataPlugin is incompatible with Mac OS.

Supported Features:

    • Files with homogeneous variable types of less than 3D dimensionality.
    • Homogeneous variables of data type CHAR, LOGICAL, INT8, UINT8, DOUBLE, SINGLE, INT16, UINT16, INT32, UINT32, INT64, and UINT64.
    • Loading all allowable variables from a given *.MAT file and ignoring any non-allowable variables during import.
    • Reading text channels from the MATLAB® file.
    • STRUCT data, where each field is a variable.
    • CELL data from *.DAT files.
    • COMPRESSED data from *.MAT files.
    • BigEndian data type.
    • LittleEndian data type.
    • The DataPlugin displays channels in the Data Portal as *.MAT files by sending those channels to variables in the same way as they were originally imported.
    • Writing text channels to strings from the MATLAB® file.
    • The DataPlugin no longer decorates variable names with a 'v_' prefix. 
    • The DataPlugin no longer writes a log file.
    • A separate time channel is created for waveform channels.
    • Only supports 124 characters.
    • Can insert a character as separator between group name and channel name. (Please contact to learn more.)


Non-Supported Features:

  • Loading variables in a *.MAT file of heterogeneous data types such as OBJECT and FUNCTION.
  • Variables with an invalid class type are ignored.
  • Three-dimensional arrays


File Extension: *.MAT
Direction: Read / Write
Last Change: October 10, 2019 []
Update Information:

The following changes have been made to this version:

  • Added support for int8 data type.



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

Related Links:
How to install this DataPlugin (C++)
Overview DataPlugins / DataPlugins Home Page
DIAdem Home Page
Methods for Working with DIAdem and The MathWorks, Inc. MATLAB® software: Data Transfer and Interprogram Communication
MATLAB®-TDM-Example User Guide

Back to Top

Customer Reviews
9 Reviews | Submit your review

MATLAB 5 is default output?  - Apr 26, 2017

I cannot get that plug-in to Export MATLAB Version 5.0 output files. In contrast to the description, I always get MATLAB Version 4.0 files as export files. I tried to enter "MATLAB 5.0" in every description, however without success. Still getting Version 4.0 files as exported output.

Needs Work  - Feb 10, 2017

This thing chokes when attempting to import any number of cell arrays greater than one or two. At that, it still takes unreasonably long to import the arrays it can read because of the way they are indexed and referenced by the plugin. Finding the glitch and writing an import script that gets around it is also extremely difficult due to the fact that native debugging is not supported for data scripts. Please attempt to fix this glitch in the plugin or allow it to ignore cell arrays altogether.

Error Loading Matlab file with Diadem 2012, Filesize ~ 6,6GB; Channellength ~ 17,500,000 Double Values  - Dec 17, 2015

Hey, I have a file of measurement data which is pre processed in Famos and exported as a Level 5 MAT file. The Filesize is ~6.6GB and the Datachannels contain up to 17,500,000 Double Values. When I try to load the File in Diadem 2012 using the Plugin I get the following error message (translated from german): Loading the File "D:\...........\...mat" with the loading method "Matlab" has failed! Further Information: The File "D:\...........\...mat" cannot be opened. Is there a maximum filesize or channellength that the Plugin can handle? It works with a different File which has a size of 1,6GB and a maximum channellength of 4,320,000. My Workstation has a: Core i7-3520M and 16GB of RAM and is running Windows 7 Enterprise 64Bit Thank you J. Rosemann

What Versions  - Aug 2, 2013

Can you please list what .mat versions this plugin can read and write?

64-bit LV support  - Feb 15, 2013

I would like to write files using my 64-bit LabVIEW application. Where is the plugin for 64-bit LabVIEW?

Update for LabVIEW 2012?  - Feb 1, 2013

Is there a change this plugin will be updated for use with LabVIEW 2012? I installed the plugin, but it does not show up in the list, even after a complete system restart.

  - Jan 23, 2013

Hello, I am using LabVIEW 2009 and 2010. In LV 2010 the Matlab plugin works fine, but not in LV 2009. Is there any chance to get this plugin for LV2009 SP1? thanks a lot in advance!

  - Mar 20, 2012

Hello, if I export from .tdm into .mat which version of .mat it is transformed to. Into Matlab 7 or Matlab 6 format? Thanks. Regards.

Matlab Explort  - Jul 6, 2010

The matlab import works perfectly but the export does not work at all. Give an error messasge, but anyway it save's a file but it is empty. Someone can help me?

View more reviews

Bookmark & Share






Rate this document

Answered Your Question?
Yes No