ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving a 3-d array

Can I save a 3-d Array? How?  Thanks.
0 Kudos
Message 1 of 7
(3,704 Views)
You can save anything you want. What format do you want to save it as? A simple method is to simply use a Write to Spreadsheet File inside a for loop.
0 Kudos
Message 2 of 7
(3,703 Views)
So the array is 750 X 50 X 40. Save 750 2-d arrays then reconstruct as needed?  I guess I should have though of that. Thanks.
0 Kudos
Message 3 of 7
(3,698 Views)

Another method is to simply use the Write to Binary File.

Another method is to use XML using the LabVIEW XML schema.

Another method is to use XML using your custom schema.

 

...

 

 

Message 4 of 7
(3,674 Views)

you can convert 2D to 1D, then use for loop convert 3D to 2D.

0 Kudos
Message 5 of 7
(3,666 Views)

And reopening the binary file should be rather quick, I would think.

Thanks.

0 Kudos
Message 6 of 7
(3,642 Views)

ronke wrote:

you can convert 2D to 1D, then use for loop convert 3D to 2D.


Actually, you don't need a loop. The Reshape Array function will accept a 3D array and spit out a 1D array in the same way.

0 Kudos
Message 7 of 7
(3,641 Views)