06-26-2006 02:05 AM
06-26-2006 08:42 AM
06-26-2006 09:05 AM
hi there,
if you just set "append to file" to TRUE the "Snd Write Wave File" vi will also append the header information to the file wich will lead to a corrupted file, because the header contains information about the duration of the wav file.
i suggest to store the data in a array (or in a binary file) as U8/U16 1D/2D (depending on your resolution and mono/stereo). if you want to have a wav file then write the array (or reread the binary file) using "Snd Write Wave File".
06-26-2006 09:12 AM
06-26-2006 09:19 AM
06-26-2006 10:11 AM
hi there
i've been so curious i had to try this out (see attachment)... the vi may needs a little bit more testing end debugging.
06-25-2009 01:25 PM
06-25-2009 01:43 PM
A wavefile has header that contains some information More about it here http://ccrma.stanford.edu/courses/422/projects/WaveFormat/
This header has a constant size 45 bytes if I am not wrong. So if you work with a dynamic recording you must create a file with a empty header. Then your recording is done you can update your header. Then working with binary files this is not problem. Just tell the file write to write x bytes from offset 0.