LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS Bug NI_MinimumBufferSize

I have what I believe is a clear bug.  I wanted to write some data to a TDMS file and have it in a predefined order.  One trick to do this is to write the data the first time in the order you want, then that will be the order used for Groups or Channels.  Usually I use the NI_MinimumBufferSize property because and write that to every channel, and every group to define the order the data should appear.  However I noticed that when I did this some times my data would change.  Attached is a VI that shows this bug.

 

It creates two TDMS files.  Both write the same data (from a constant) into two groups.  Then it will read a channel from one of the groups.  The data it reads is different, based on if the NI_MinimumBufferSize property is set, or another property is set.  I don't see how setting the Minimum buffer size would change the data but it does.  There are a few work arounds.  User another property to set the order, or even leave the property field blank and it will still set the order.  Or I also noticed if there was a flush after every write the bug goes away.

 

I searched and couldn't find this issue.  This is in LabVIEW 2011 SP1.

Message 1 of 2
(2,686 Views)

Hooovahh, CAR 378254 is filed to track this issue.

0 Kudos
Message 2 of 2
(2,625 Views)