LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

function of "tdms_index"

I used TDMS format in my measurement and used it as a database.

So, I want to minimize the number of each file.

Can I remove or move the file of "tdms_index" (just 1kb) to other folder?

Or I don't want to create "tdms_index".

 

Labmaster.

0 Kudos
Message 1 of 4
(4,017 Views)

Hi labmaster,

 

tdms_index file is used when you opennig the TDMS file again, it helps speed up to load all the necessary information into the memory. So I would not recommend you delete the only 1 KB index file. If you want to minimize the file size, you may consider to defragment the TDMS file. 

Message 2 of 4
(4,001 Views)

Okay, thanks for the reply.

Additionally, I'd like to ask you or other again.

 

I create one TDMS file and then write my data in each group continuously.

In this case, how frequently do I had better do defragment the BIG file of TDMS to reduce the processing time?

- Only one time in the end of the final measurement?

or - end of each group measurement (as many as possible)? 

 

labmaster.

 

0 Kudos
Message 3 of 4
(3,994 Views)

Well, the purpose of defragmentation is to make the fragments in the TDMS file is as less as possible. I would recommend you setting the property "NI_MinimumBufferSize" on the channels. This property generally buffers up the data values of the channel in the memory and once it comes up to the number of the property setting, it flushes to the disk at once. Normally the value should be something around 1,000 to 10,000. You can have a try. The detail information can be found in the documentaion of "TDMS Set Properties" in LabVIEW.

0 Kudos
Message 4 of 4
(3,981 Views)