Example Code

Play Audio from Data File in LabVIEW

Code and Documents

Attachment

Overview:

This VI exemplifies how to read the values of an ASCII file and play it as audio.

Description:

This example is useful to reproduce audios that were previously recorded in ASCII files. We use the Read From Spreadsheet File VI to obtain the data and pass it to the sound VIs.

Requirements:

LabVIEW 2012 or compatible

Steps to Implement or Execute Code:
1. Configure the Sound Format
2. Run the VI
3. Select the .dat ASCII file desired

Additional Information or References:


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

 

 

Andy Chang
National Instruments
LabVIEW Control Design and Simulation

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