12-21-2010 08:23 AM
Hi,
I have a PCI 6132.
I´m using a program to acquire datas in continuos mode, and save it in my pc.
I'm using TDMS files to record it. But this files are too long. I need record it in multiple files to make easy to read after.
Using just one file, it has more than 10Gb, so, I need make multiples files with 1Gb each one, for example.
Thanks,
Marcela
12-21-2010 10:23 AM
Hi,
So, is your question "how to split the files?" or maybe "how to compress them?"
I didn't quite get what you want.
12-21-2010 12:57 PM
Sorry...
How I divide this files? How I make multiple TDMS files?
Thanks.
12-21-2010 11:40 PM
Hi,
I think the better idea is to write data into multiple TDMS files when streaming data, instead of split the file into multiple files when you finish writing.
There are at least several ways to split, it depends on your application. For example, if you have multiple groups or channels, you can read from the big one TDMS file group by group and write to new TDMS file for each group. And, you can read samples by samples, for example, if you have 1000 samples in the big one file and you can split the 1000 samples into 10 files and each new file contain 100 samples. Another way is based on TDMS file format, TDMS file is consist of "segments", you can divide the big one file into new files and for each new file, it contains at least one segment (it would be a little complicated for the implementation, you need to know where the segment starts from, etc).
Please refer to www.ni.com/tdms for more reference.
12-22-2010 04:45 AM
"you can read samples by samples, for example, if you have 1000 samples in the big one file and you can split the 1000 samples into 10 files and each new file contain 100 samples."
I want to do as you describe above, but what is block VI responsable for this? Do you have some examples?
Thanks.
12-22-2010 07:50 PM
You can use TDMS Read to read out all the samples in a channel and use then open the new TDMS files, write the data in small chunks to new files.