LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

writing a 3d matrix to a binary file

i have some data stored in a 3D matrix which i would like to write to a binary file. what is the easiest method of doing this? i have had a look at the Labview write binary file VIs, but they only accept 1D or 2D data.

thanks.
0 Kudos
Message 1 of 2
(2,664 Views)
You have several possibilities, here are two:

  • just flatten your 3D array to a string, the save the string. Later read the string from the file and convert it back using unflatten from string and an empty 3D array as type input. Here you can use the simple "read/write characters from/to file" vis.

  • Use low level file I/O and wire an empty 3D array as datalog type.
  • 0 Kudos
    Message 2 of 2
    (2,664 Views)