10-08-2019 12:16 AM
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?
10-08-2019 12:27 AM
I guess your file is generated by some other software. What are the export choices? How well are the formats documented?
10-08-2019 12:34 AM
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,
10-08-2019 12:58 AM - edited 10-08-2019 12:59 AM
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:
You just need to follow the format used by LabVIEW (as described in the LabVIEW help)…
10-08-2019 02:06 AM
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?