LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to save 3, 1-d arrays (double precision) into parallel columns with text before the arrays. Any ideas?

I've tried various schemes for this... I can get the format I want if I save the text and the arrays in separate files, but I want them stored together in the same file.
0 Kudos
Message 1 of 4
(2,676 Views)
If you want the text above the columns, simply write the text first, then write the data to the same file using "append=true". See attached image.
0 Kudos
Message 2 of 4
(2,676 Views)
El Guapo wrote:

> I want to save 3, 1-d arrays (double precision) into parallel columns
> with text before the arrays. Any ideas?
>
> I've tried various schemes for this... I can get the format I want if
> I save the text and the arrays in separate files, but I want them
> stored together in the same file.

It depends, what you want to do with the data. If you want to import it
in excel for example, you could just use "write to file" to write the
headers into the file and than use the "write to spreadsheet" with
"append" set to true, to append the data-colomns.

If you just need to reimport the data to labvie, you can put the text
together with the array in an cluster and write it to a datalog-file.

Bye

Marco
0 Kudos
Message 3 of 4
(2,676 Views)
El Guapo wrote in message news:<5065000000080000009AE60000-1079395200000@exchange.ni.com>...
> I want to save 3, 1-d arrays (double precision) into parallel columns
> with text before the arrays. Any ideas?
>
> I've tried various schemes for this... I can get the format I want if
> I save the text and the arrays in separate files, but I want them
> stored together in the same file.

Are the arrays the same size? if so you could append each element to
an array using the input element function and just loop through the
arrays. The finished array can then be output to a file.

If you like I can make a quickie and post it somewhere to show you
what I am talking about

For loop:

1d Array element 1 ------------| |
1d Array element 2 ----------
--|Input elements|------ one 3d array
1d Array element 3 ------------| |

end loop

I use this to fill an excel spreadsheet.

Billie Kennedy
0 Kudos
Message 4 of 4
(2,676 Views)