02-15-2013 01:34 AM
I do not know much about recording data to text or spreadsheet. I need to record measurements in 47 columns and 20000-30000 rows. All data are double precision. I attached a screen shot that is explaining the methods by which I want to log data. Which one is the best for this case? Using write to spreadsheet function or write to text?
02-15-2013 02:58 AM
Hi newbieeng,
for that amount of data you should write each row of data to the file in the loop (data safety, smaller memory requirements).
It doesn't matter (in terms of resulting file) which function you use, you can also attach data to existing file using WriteToSpreadsheetFile.
When speed really matters you should use separate loops for DAQ and file writing and you should think about using TDM(S) or binary files...
02-15-2013 03:04 AM
On my last project I had alot of success with tdms logging alot of channels so in my opinion that would be the way to go, may be worth you looking into it to see if it fits your application
02-15-2013 03:33 AM
Thank you all for your replies.
GerdW, what do you mean separating loops for daq and logging data? A kind of state machine? First acquire data and after recording it?
02-15-2013 03:36 AM
02-15-2013 07:28 AM
Use TDMS instead of spreadsheet. It has a much better performance.
Most applications in measuring space accept TDMS files. Even import into Excel is possible by using the free TDM Excel Add-In.
Please do not forget to attach descriptive information (meta data) in terms of properties (name/value pairs) for documentation, report generation and data mining.
Data without attached descriptive information will become useless over time.
In case you have to stick with a spreadsheet, also consider adding descriptive information. By providing a DataPlugin for this specific file, report generation and data mining is still easy to do.
In this case adding a magic water mark at the beginning of your file, for instance in form of a text (MY_SPREADSHEET_FILE_1_0) will help to identify this specific spreadsheet file type.
02-15-2013 08:17 AM
thank you StefanR, I will check this option.