02-17-2006 12:58 PM
02-18-2006 05:02 AM
02-20-2006 12:59 PM
02-21-2006 03:28 PM
Hello,
I am a little unclear of what you are attempting to accomplish with your VI (you might really want to check out the LabVIEW Style Guidelines). I gather that you are acquiring data every 30 seconds or so for several hours and want to log this information to file(s). Did you want to write these various columns of data to separate files for each column, or did you want it organized more like a spreadsheet where they are all in one file?
In either case, the technique you want to use is the concept of “disk streaming” to write your data. This means that you will want to first open each file you wish to write data to though the duration of your execution. Then “operate” on the file as data is acquired – add the new data to the end of the file. This will be done using the “Write File” VI where the “Pos Mode” is 1 – i.e. write to the end of the file. Do this for each of the file(s) you wish to append data to, then close the file(s) when your program exits. There are some good file IO examples in the NI example finder as well as through the NI Dev Zone.
Hopefully this will help you get started. Let me know if you have other questions or if this response did not answer your question!
02-28-2006 02:06 PM
03-01-2006 07:32 PM