LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save number to file

I need save a 3D array to file.What i do is to change every three number to string and save.But i does't work.Can someone suggest ideal solution.

Regards
0 Kudos
Message 1 of 4
(3,017 Views)
One simple solution (and probably the shortest) is to convert 3D array to string using "Array to Spreadsheet String" and save it to file. Find attached example. Anyway, you have other options available too (save every element or every 1D or 2D array included in your 3D separately ... just pay attention to read them in the same manner).

Hope this helps
Download All
Message 2 of 4
(3,017 Views)
For every 2D array "i" in your 3D array, "Write to Spreadsheet File.vi" with "append ?" option true.

Mark_Wang a ecrit :

> I need save a 3D array to file.What i do is to change every three
> number to string and save.But i does't work.Can someone suggest ideal
> solution.
>
> Regards
0 Kudos
Message 3 of 4
(3,017 Views)
One variant on this advice comes if you aren't interested in viewing the data outside of LabVIEW (e.g. textfile, Excel, etc.), but just want to be able to save and retrieve it and use the minimum amount of storage space.

In that case, it's probably best to save and retrieve the data in binary format. Check out the "Write Binary File.vi" and "Read Binary File.vi" examples that ship with LabVIEW (Help >> Examples >> Fundamentals >> File I/O >> Binary File Examples).

Regards,
John Lum
National Instruments
0 Kudos
Message 4 of 4
(3,017 Views)