LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need example with write to DATA log file programmatically?

Hi all,

I would like to request for an example of writing a datalog (*.DAT) file which could do this.

Datalog file.

NAME: AGE: SEX: (header)
john 16 M (data)
marie 55 F
Dolah 34 M

The program can also let me to add in new data and then store in the same file.dat. The data (hopefully) can be written to the bottom of the last saved entry of data. (eg. after the row Dolah).

I need to do this so that I can open and read back the datalog file and use the data for other purpose.

Please help,
juni
0 Kudos
Message 1 of 4
(3,166 Views)
You've got some examples in Fundamentals>File Input and Output but one of the easiest things to do is to modify Write Strings to Spreadsheet File.vi to write strings as detailed at the bottom of the diagram and then save it to a different place and with a different name.
Message 2 of 4
(3,166 Views)
Hi Dennis,

Thank for showing me the example.
But...(silly of me) ...I was wondering how did you manage to wire the 2D string array to the Write to Spreadsheet.vi 2D numeric array?

I write to wire but it doesn't let me connect.

Thanks,
jun
0 Kudos
Message 3 of 4
(3,166 Views)
Like I said in my answer, you modify the VI per the directions at the bottom of the diagram in order to make it accept strings.
0 Kudos
Message 4 of 4
(3,166 Views)