Hi Sven
look into the examples of LabVIEW. "Search Examples>>I/O Interface Examples>>Daq Examples>>Continous Acquisition & Chart (buffered)" will do the most you want.
Modifiy the block diagram to open a file with "File I/O>>Open/create/replace File.vi" before entring the while loop. Connect the refnum to the while loop (left side) and use in the while loop "write file" to write the data to the file. Connect dup refnum to the while loop (right side) and use "close file" to close the file.
You can also look at the File I/O examples how to write and read files with LabVIEW.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions