LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tdms files

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

 

0 Kudos
Message 1 of 6
(2,867 Views)

Hi,

 

So, is your question "how to split the files?" or maybe "how to compress them?"

I didn't quite get what you want.

0 Kudos
Message 2 of 6
(2,853 Views)

Sorry...

 

How I divide this files? How I make multiple TDMS files?

 

Thanks.

0 Kudos
Message 3 of 6
(2,845 Views)

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.

0 Kudos
Message 4 of 6
(2,826 Views)

"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.

0 Kudos
Message 5 of 6
(2,817 Views)

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.

0 Kudos
Message 6 of 6
(2,791 Views)