02-09-2014 05:01 AM
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!
02-09-2014 06:45 AM - edited 02-09-2014 06:48 AM
Look at the write to spreadsheet VI 🙂
http://zone.ni.com/reference/en-XX/help/371361J-01/glang/write_to_spreadsheet_file/
02-09-2014 11:49 AM - edited 02-09-2014 11:50 AM
Hi friends
I need to write an excel file from an array data different types (cluster)
Thanks
02-10-2014 03:25 AM
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:
02-11-2014 09:36 PM
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!
02-12-2014 02:07 AM
Dear Victronica,
sure thing! 2012 version attached.
regards: