Discussion:
Array size is written to binary file on second and susequent loop iterations even though "Prepend Array" is set to false
(too old to reply)
mdhalleck
2008-08-06 23:40:04 UTC
Permalink
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
Ravens Fan
2008-08-07 03:10:04 UTC
Permalink
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.
Loading...