From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,435 Views)
0 Kudos
Message 2 of 6
(2,418 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,390 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,351 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,285 Views)

Dear Victronica,

 

sure thing! 2012 version attached.

 

regards:

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