LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you save data into a tab delimited text file?

It sounds simple if we just save the data, but here I have to enter few text entries and write values beside them. For example, if we have results like..
Voltage 5 V
Current 2 mA
Power 1 mW

What VI do you use to save the entries like this in the file. I don't want to use Report Generation VIs as it adds overhead...

Any suggestions would be well appreciated.

Thanks.
0 Kudos
Message 1 of 4
(3,789 Views)
Hi Act,

They say a picture is worth a 1000 words.
I prepared a small vi to give you an idea how it is done. There are probably much better examples available if you look around. But here goes...

It is actually simple. The attached example is not the best approach, but as I said, it is to get you going..

The vi allows you to create a file with the extention of your choice. You can substitute the write to file vi with a write to speadsheet. The appropriate approach is to first open the file, decide if you wish to create, append or overwrite the file, write to the file and close the file.

All the necessary vi's are located inside the Functions Palette under File IO.

JLV
Message 2 of 4
(3,789 Views)
Hi Joe,

Thanks for the info. Do you know any site that has examples related to this task ? Please let me know.


Act
0 Kudos
Message 3 of 4
(3,789 Views)
If you have LV7, there is an example finder. I don't know if we are allowed to post such examples into this forum..

Look under "Help > Find Examples...", you will find some.

Also do a search within this forum.

JLV
Message 4 of 4
(3,789 Views)