Incorrect Channel Behavior When Importing MATLAB® MAT-Files in DIAdem

Updated Apr 1, 2024

Reported In

Software

  • DIAdem
  • NI DataPlugin for MATLAB® MAT-files

Issue Details

  • I am using the NI DataPlugin for MATLAB® MAT-files and when importing my MAT-files(.mat) in DIAdem I see unexpected results. Some last values of specific channels are cut off and appear on the next channel. How can I change this?
  • The NI DataPlugin for MATLAB® MAT-files in DIAdem is having issues detecting the begging and end of the channels of the MAT-files I previously created in MATLAB®.

Solution

The NI DataPlugin for MATLAB® MAT-files can import MAT-files created under a specific structure. When using this DataPlugin, DIAdem will look for each channel to be stored as a 0D scalar, a 1D variable, or N variables stored in a flat 2D matrix of any supported datatype value.

Even though other MAT-files structured differently could be loaded without any apparent error, their defined channels may be prone to unexpected behaviors due to the unmatching format. To avoid this behavior configure the structure of the file on the MATLAB® editor to match the predefined NI DataPlugin for MATLAB® MAT-files accepted structures.

An alternative could be creating a custom DataPlugin that will match the custom format of the MAT-files. The following articles contain helpful information regarding the process of creating custom DataPlugins:

Additional Information

For more information regarding the NI DataPlugin for MATLAB® MAT-files accepted structures, data types, and others, visit: NI DataPlugin for MATLAB® MAT-files Release Notes .