11-07-2012 12:11 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
11-11-2012 07:43 PM
Hooovahh, CAR 378254 is filed to track this issue.