LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

3D Matrix from Matlab (.mat file) into LabVIEW

Hello all,

 

I want to read a 3D matrix (121*121*231) from a .mat file into LabVIEW for further processing in a mathscript node.

I am easily able to read 2D matrix (231*5) from a .mat file in LabVIEW with the help of 'Read Data' express vi, but facing difficulties with 3D matrix.

 

Please find below the approach used for reading 2D matrix (.mat file)

 

Reading a .mat file in LabVIEW.PNG

 

Please let me know if there is any different way to read a 3D matrix .mat file in LabVIEW

 

 

Many thanks

 

Rahul Nirhale

Knorr- Bremse, Munich

 

0 Kudos
Message 1 of 3
(3,289 Views)

You may want to check out this site, http://matio-labview.sourceforge.net/. I believe there are VIs for saving and importing .mat files.

 

Cheers,

mcduff

 
0 Kudos
Message 2 of 3
(3,278 Views)

You asked the same thing (technically known as "Double-posting" and frowned upon) in Stanley's earlier post, which several people (including me) have answered.  The current version of .mat files is more recent than Version 5 in matio-labview, so it might not work with your data.  I suggested reading the .mat file in Matlab and writing it as a .dat file (easily done), which LabVIEW can easily open.

 

Bob Schor

0 Kudos
Message 3 of 3
(3,244 Views)