Sound File Write VI

Owning Palette: Sound Files VIs

Requires: Base Development System

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.

Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

Sound File Write (DBL)

sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
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.
t0 is ignored.
dt is ignored. The sample rate specified in Sound File Write Open specifies the sample rate.
Y is the sound data. If the array data type is a floating-point numeric, Y can range from -1.0 to 1.0.

The specified data type determines the range of values for the sound data.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
error out contains error information. This output provides standard error out functionality.

Sound File Write (WFM)

Note Note  The WFM instance of this VI writes data from a single waveform that uses double-precision floating point numbers for the sound data.

sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
data writes any sound data to the internal buffers.
t0 is ignored.
dt is ignored. The sample rate specified in Sound File Write Open specifies the sample rate.
Y is the sound data. If the array data type is a floating-point numeric, Y can range from -1.0 to 1.0.

The specified data type determines the range of values for the sound data.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
error out contains error information. This output provides standard error out functionality.

Sound File Write (SGL)

Note Note  Use the SGL instance to write data from a waveform that uses single-precision floating point numbers for the sound data.

sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
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.
t0 is ignored.
dt is ignored. The sample rate specified in Sound File Write Open specifies the sample rate.
Y is the sound data. If the array data type is a floating-point numeric, Y can range from -1.0 to 1.0.

The specified data type determines the range of values for the sound data.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
error out contains error information. This output provides standard error out functionality.

Sound File Write (U8)

sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
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.
t0 is ignored.
dt is ignored. The sample rate specified in Sound File Write Open specifies the sample rate.
Y is the sound data. If the array data type is an 8-bit unsigned integer, Y can range from 0 to 255.

The specified data type determines the range of values for the sound data.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
error out contains error information. This output provides standard error out functionality.

Sound File Write (I16)

sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
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.
t0 is ignored.
dt is ignored. The sample rate specified in Sound File Write Open specifies the sample rate.
Y is the sound data. If the array data type is a 16-bit signed integer, Y can range from -32768 to 32767.

The specified data type determines the range of values for the sound data.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
error out contains error information. This output provides standard error out functionality.

Sound File Write (I32)

sound file refnum is the reference to the sound file. You generate sound file refnum with the Sound File Open VI.
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.
t0 is ignored.
dt is ignored. The sample rate specified in Sound File Write Open specifies the sample rate.
Y is the sound data. If the array data type is a 32-bit signed integer, Y can range from -2147483648 to 2147483647.

The specified data type determines the range of values for the sound data.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
sound file refnum out is the reference to the sound file originally passed in the sound file refnum parameter.
error out contains error information. This output provides standard error out functionality.

Example

Refer to the Sound Input to File VI in the labview\examples\Graphics and Sound\Sound directory for an example of using the Sound File Write VI.

 Open example  Find related examples