Karissap Posted November 8, 2007 Report Share Posted November 8, 2007 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? Quote Link to comment
Ton Plomp Posted November 9, 2007 Report Share Posted November 9, 2007 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 Quote Link to comment
Karissap Posted November 10, 2007 Author Report Share Posted November 10, 2007 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.