Sound File Write (I16) VI
- Updated2025-07-30
- 2 minute(s) read
Writes data from a waveform or an array of waveforms to a .wav file.
(Windows) You must have DirectX 8.0 or later to use this VI. (Linux) You must have the Open Sound System (OSS) driver to use this VI.

Inputs/Outputs
sound file refnum
—
sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
data
—
data writes any sound data to the internal buffers. For multi-channel sound data, data is an array of waveforms where each element of the array is a single channel. The specified data type determines the range of values for the sound data.
error in (no error)
—
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out
—
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
error out
—
error out contains error information. This output provides standard error out functionality. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Graphics and Sound\Sound\Sound Input to File.vi
sound file refnum
—
data
—
error in (no error)
—
sound file refnum out
—
error out
—