MatFile Toolkit FAQ

There is a new release of the MatFile Toolkit which fixes this bug. If you are having this issue try downloading and installing the following file: Latest Release

There has been some initial development towards supporting struct datatypes. This is a significant effort, and we are waiting to get some return from developing the MatFile Toolkit prior to taking on this enhancement to the software. At the moment there is no support for struct datatypes.

There currently is no support for any 64-bit versions of LabVIEW. It is a significant effort to add 64-bit functionality, and we are waiting to get more return from developing the MatFile Toolkit before taking on this effort.

The default file type for the Open function in the MatFile Toolkit is "Default (V5.0)." We selected this file type as the default, because it is the file type considered to be the most compatible with Matlab. However, reading and writing using this file type is slower in comparison to other mat file types. We benchmarked the different file types. The results of which are shown in the following table:

File TypeTime
HDF5 (V7.3)52 ms
Local Char-Set (V6.5)66 ms
Compressed (V7,0)90 ms
Default (V5.0)96 ms

The HDF5 file type is the fastest file type, and the one recommended if compatibility between Matlab versions is not a concern.

Example code can be found a number of ways:

Example Finder

Open LabVIEW and goto Help>>Find Examples... This will open NI Example Finder. Hit the Search tab and search for Matlab. There you will see the examples "MatFile Toolkit - Read" and "MatFile Toolkit - Write Data to MAT"

Windows Explorer

When the MatFile Toolkit is installed, the example files are copied to the LabVIEW directory: <LabVIEW>\examples\EvaulMation, LLC\Mat File Toolkit\Examples.

Our Website

I have pushed the example files to our webserver so that they can be downloaded here.

An error from the VI Package Manager is usually the result of an out-of-date version of VI Package Manager. To update to the latest version, open VI Package Manager and from the menu bar select Help>>Check for VIPM Update to automatically download and install the latest VI Package Manager. You can also manually download the VI Package Manager from here.

We have provided an article on how to build an executable with the MatFile Toolkit. Please follow the link below to view the article:

Building An Executable With the MatFile Toolkit