Example Code

Build and Save a New Sound

Code and Documents

Attachment

Download All

Overview

This example VI demonstrates the use of various function generation tools in LabVIEW to build up a sound from its component waveforms. 

 

Description

This example shows how to use the various function generation tools in LabVIEW to build up a sound from its component waveforms. You can preview a single waveform, add it to your "new sound," then save that new sound to a file for later use. It also allows you to save the steps you took to create that waveform. This example shows how to use event structures.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download the attached folder to your computer
  2. Open the VI " New Sound 2012 NIVerified.vi"
  3. Run the VI
  4. In the top half of the screen, you can configure an individual signal type, then play it to preview its sound. Click "ADD" to add it to your "new sound." Click "REMOVE" to subtract that signal from your "new sound"
  5. In the bottom half of the screen, you can play your "new sound," save it, or stop the program. The table lists all the signal types that have been added to it.
  6. Enjoy your new sounds

 

Additional Information or References
VI Block Diagram

 

Block Diagram.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

 

Daniel Hays | Test Software Business Manager

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.