Sound Output Write (U8) VI
- Updated2025-07-30
- 3 minute(s) read
Writes data to a sound output device. You must use the Sound Output Configure VI to configure the device if you are writing continuously. You must manually select the polymorphic instance you want to use.
(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
task ID
—
task ID is the sound operation from the configured device you want to manipulate or input. You generate task ID with the Sound Output Configure 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.
timeout (sec)
—
timeout (sec) specifies the time, in seconds, that the function waits for the sound operation to complete. This VI returns an error if the time elapses. The default is 10. If you set timeout (sec) to -1, the VI waits indefinitely. If you set timeout (sec) to 0, the VI returns immediately while the sound continues to play. You can use the Sound Output Wait VI to wait for playback to complete.
task ID out
—
task ID out is the manipulated sound operation originally passed to the task ID 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 File to Sound Output.vi
- labview\examples\Graphics and Sound\Sound\Generate Sound.vi
- labview\examples\Graphics and Sound\Sound\Simultaneous Sound Input Output.vi
task ID
—
data
—
error in (no error)
—
timeout (sec)
—
task ID out
—
error out
—