mdhalleck
2008-08-06 23:40:04 UTC
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
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