Jump to content

TDMS Buffer


Recommended Posts

Can anyone give me an example of how to use the buffer property of TDMS files? I have tried setting NI_MinimumBufferSize to a value like 1000 using TDMS Set Properties.vi but it doesn't seem to be working. If you use the buffer do you have to leave the file open in between writes and not use close. Also, how does the write buffer affect reading the TDMS data?

Link to comment

QUOTE(Karissap @ Nov 8 2007, 02:38 AM)

Can anyone give me an example of how to use the buffer property of TDMS files? I have tried setting NI_MinimumBufferSize to a value like 1000 using TDMS Set Properties.vi but it doesn't seem to be working. If you use the buffer do you have to leave the file open in between writes and not use close. Also, how does the write buffer affect reading the TDMS data?

You have to keep the reference open.

The buffer size will determine how often data is written to disk while streaming. A high number will lower the disc activity but a power failure will throw away more items.

With a low number your TDMS file needs more defragmentation afterwards.

On closing the TDMS file the whole buffer will be written to disc

Ton

Link to comment

QUOTE(tcplomp @ Nov 8 2007, 06:52 PM)

You have to keep the reference open.

The buffer size will determine how often data is written to disk while streaming. A high number will lower the disc activity but a power failure will throw away more items.

With a low number your TDMS file needs more defragmentation afterwards.

On closing the TDMS file the whole buffer will be written to disc

Ton

Thanks, it's working great now. I also had the problem that it wasn't working in 8.20. I had to save the whole project to 8.5.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.