02-04-2009 10:03 AM
Hi,
I use LV 8.6 SDK. I need to save clusters of different data types to a file on a disk, row by row.
To be specific: I have a program that performs various investigations on a signal collected by DAQmx. Each time the quality of the signal is not in a specified boundaries, i get an indication. It is a cluster of time stamp, string, dbl, and Boolean. The program is supposed to run for few weeks in a row so there can be a lot of these indications. I expect to have around 200 000 rows a week (Altogether, divided into several groups).
I thought about TDMS but I am not able to save such a cluster. And I would like to save it as tdms cause i could divide the data to different groups. I also thought about data base but that would be the first time i use db and I really do not have time to learn that now.
I know it is possible to change some of the data types to others, ex Boolean to 0-1, but i need a string and a time stamp there.
Can someone advise me which data format should I use? Which one is the best one in this situation?
Thanks in advance
handre
02-04-2009 12:24 PM
If you do not need to access data from another application (other than Labview) you can just save it as a binary file.
It is the best choice (for me).
I made an example with one cluster. You can replace that with an array of clusters, of that data type.
02-04-2009 01:37 PM
Thanks for your answer!
I forgot to add that I would like to use the data not in LV afterwards for investigations. Is it possible to open binary files for example in Matlab?
Moreover, I like tdms because I can write and read data at the same time. It is probably not possible in binary format, isn't it?
Regards
handre02-05-2009 05:07 AM
If you want a TDMS file , one solution is to convert all your data to strings.
You will have a 2D array which it can be stored in TDMS.
Each row will be one measurement.