LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array size is written to binary file on second and susequent loop iterations even though "Prepend Array" is set to false

Hi All,
 
Newbie question.
 
I am sampling analog data at 96K and streaming the data (single precision float) to a binary file in 96K chunks.  I am using the "write to binary file" component inside a loop.  Everything works great except every second I get an extra 4 bytes of data in my file which is the number of samples (96000). I notice the input labeled " prepend array or string size?" and figure I'm home free.  I set it to false and everything should be great.
 
Problem:  it only skips writing the "chunk" size on the first iteration.  Second and subsiquent iterations contain the extra 4 bytes.  If I set the value to true, I get the "chunk" size on the first iteration as well, so it seems to sorta work...
 
i looked through the message board and errata, but didn't find anything.  Doesn't mean it's not there, just that I'm not smart enough to find it...
 
Any help would be greatly appreciated.
 
Thanks
Michael
0 Kudos
Message 1 of 2
(2,581 Views)

It just doesn't make sense that would happen.

Please post your VI so others can look at it and see what may be going wrong.

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