I believe there is a bug in the example vi used to create a header when streaming binary data to disk. The example vi is Cont Acq&Graph Voltage-To File(Binary).vi and the subvi in question is create header.vi. I've included an image with the problem highlighted in red.
The way the scaling coefficient array is built, it grows by adding new data at the top of the array instead of the bottom, so that if four channels are configured in ascending order, the header will contain the information in the order of channel 3, channel 2, channel 1, channel 0. When the file is read, the information is read and scaled as if it were in ascending order. The displayed data would be incorrectly scaled if the channels were configured with different scaling coefficients (for example, if engineering units were used instead of Voltage).
Can someone please confirm, or am I missing something.
Chris