LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What is the best file format for loading multi-dimensional array(more than 2) in Labview?

Dear experts,

 

I am trying to load the 3-D or 4-D array via a certain format of file to Labview.

 

Because .csv only deals with 2-D array, I am looking for the best file format for the case.

 

I tried h5, but it seems to be too difficult to load the data.

Can you suggest me the good option about this?

 

0 Kudos
Message 1 of 5
(2,279 Views)

I guess your file is generated by some other software. What are the export choices? How well are the formats documented?

0 Kudos
Message 2 of 5
(2,266 Views)

Hello. I am trying to generate the file via MATLAB, so usually I have plenty options. I would be able to follow any suggestions.

 

Best regards,

0 Kudos
Message 3 of 5
(2,259 Views)

Hi hkpark,

 


I am trying to load the 3-D or 4-D array via a certain format of file to Labview.

 

Because .csv only deals with 2-D array, I am looking for the best file format for the case.


LabVIEW can easily handle arrays with more than 2 dimensions in a CSV file:

check.png

You just need to follow the format used by LabVIEW (as described in the LabVIEW help)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(2,248 Views)

I would probably use a flat binary, with a few header bytes encoding the number of dimensions and their sizes. Read the header, then the data and reshape accordingly. Watch out for byte order, LabVIEW is always big endian.

How big are these files?

0 Kudos
Message 5 of 5
(2,231 Views)