DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Open *.MAT file

Hello,

 

For some reason I cannot open a matlab file.  The file has been ftp'd and is called "Failed MAT file.zip"

 

I can open other .mat files just not this particular one.  I am using DIadem 2012 SP1. 

 

When I load the data into the data portal it says loading the file "file name" has failed for all the loading methods (DataPlugin) linked to this file type. No DataPlugin assigned for this type.

 

When I assign the plugin to open MatLab file I get another error stating it cannot open the file with the loader "MatLab"

 

Any ideas?

 

 

 

Thanks

Tim
0 Kudos
Message 1 of 4
(6,793 Views)

Hi Tim,

 

I downloaded your *.mat file and had the same error message you report.  The DataPlugin does appear to correctly import 239 of the channels from that file.  Do you know if the "EngTrqStatic1" is the only one it fails on, or was that channel supposed to be empty?  I'll send your file on to R&D for them to see what's happening during the import.  There are some *.mat file data types that the DataPlugin can't support (like custom structs), so it's possible we won't be able to help, but let's see.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 4
(6,776 Views)

Hi Tim,

 

From our point of view that *.mat data file is internally inconsistent. It contains an element of type "miCOMPRESSED" which starts at file position 51252054 and states that the element is 285561 bytes long.  However, the file only contains 51380224 bytes, so the element is incorrect in pointing through byte 51537615.  How was this file created?  Is it possible that the write process was abruptly terminated?

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 3 of 4
(6,749 Views)

I have no doubt that there are issues with this file.  I notified the engineer that created it that I even get errors when I open it in Matlab.  I have asked him to recreate the data to see if these issues are resolved.

 

Thanks for your help and I consider this issue closed.

Tim
0 Kudos
Message 4 of 4
(6,732 Views)