Playing .WAV Sound File from LabVIEW

Updated Oct 10, 2018

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.

WAS THIS ARTICLE HELPFUL?

Not Helpful