Hi Lab,
I would check out
this previous discussion forum thread about recording data to .wav files. It provides a link to find the specific header format and data structure as defined by Microsoft. Once you know the formats you can write the binary data directly into a file using fopen and fwrite.
Here is a link to an example of doing binary write to files.
Jeremy L.
National Instruments
Jeremy L.
National Instruments