LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write array into txt file

Hi Guys!

 

I need a VI which writes the content of an array into a txt file.

 

I have an array like this:

Peti    Teri
Zoli    Hajni
Tomi    Heni
Pali    Robi

 

In the file the first line should be a full timestamp (date, time), and then would come the content of the array. The name of the file would also be a timestamp.

 

Thank you for your help in advance!

 

0 Kudos
Message 1 of 6
(2,832 Views)
0 Kudos
Message 2 of 6
(2,815 Views)

Hi friends

 

I need to write an excel file from an array data different types (cluster)

 

Thanks 

 

0 Kudos
Message 3 of 6
(2,787 Views)

Hi Victronica and welcome to NI Forums!

 

If you have some custom data, then it is up to ou to tell excel how to interpret said data (what information to put where, etc.) A simple solution would be to flatten your cluster elements into strings, and write those strings into an excel sheet using ActiveX. An example on how to write a table of strings is available in the example finder, and I also have it attached here in LabVIEW 2013.

 

Kind regards:

Andrew Valko
National Instruments Hungary
0 Kudos
Message 4 of 6
(2,748 Views)

Hi;

 

Thanks for your help.
I have a problem with the file attached, the version of LabVIEW that I have is 2012 and I can not open it.

Thank you very much!

0 Kudos
Message 5 of 6
(2,682 Views)

Dear Victronica,

 

sure thing! 2012 version attached.

 

regards:

Andrew Valko
National Instruments Hungary
0 Kudos
Message 6 of 6
(2,667 Views)