LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

saving clusters to file

Hallo,

I have a cluster like this:

a 1
b 2
c 3

I want to save it to a txt-file. Buiding an array is not possible, saving the cluster directly doesn't work properly.

Arno
0 Kudos
Message 1 of 3
(2,933 Views)
Hi Arno,

If a txt output file is required, then I believe you'll have to unbundle the cluster, convert all numbers into strings, and then use a string array to write to the file.

hope this helps,
Dan
0 Kudos
Message 2 of 3
(2,933 Views)
Arno,

You can use Flatten To XML to get a string with labels and values (Advanced
> Data Manipulation >XML). Use it's counter part to convert it back.

Regards,

Wiebe.

"ASCologne" wrote in message
news:50650000000800000094E00000-1079395200000@exchange.ni.com...
> Hallo,
>
> I have a cluster like this:
>
> a 1
> b 2
> c 3
>
> I want to save it to a txt-file. Buiding an array is not possible,
> saving the cluster directly doesn't work properly.
>
> Arno
0 Kudos
Message 3 of 3
(2,933 Views)