This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Playing .WAV Sound File from LabVIEW

Updated Jan 6, 2023

Reported In

Software

  • LabVIEW

Issue Details

I would like to play .WAV sound file in LabVIEW. How can I do this?

Solution

The sound palette is located in the Functions Palette under Programming>>Graphics and Sound>>Sound. Select Output and you can use the Play Waveform Express VI or the Play Sound File VI to play a .WAV file. The Device ID terminal is the device you access for a sound operation, which is generally 0 by default. The Play Waveform Express VI has an auto-populated drop-down list that includes all available sound devices. Refer to Context Help for more information.

Additional Information

For example code, select Help » Find Examples. When the NI Example Finder window opens, select the Browse tab, then navigate to Hardware Input and Output » Sound. To play a .WAV file, begin with the Sound File to Sound Output VI.

If your 
.WAV is not in the standard .WAV file format you may get the error 4810: