Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

wavplay (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: audio

Requires: MathScript RT Module

Syntax

wavplay(a)

wavplay(a, fs)

Description

Plays the content of vectors.

Examples

Inputs

Name Description
a Specifies the content you want to hear. If a is a vector, LabVIEW plays the output on a single channel. If a is a matrix, LabVIEW plays the output of the first two columns on two channels, or in stereo sound. a is a column vector or matrix of integers or real numbers.
fs Specifies the sampling frequency. Valid values of fs are 8000, 11025, 22050, and 44100 Hz. fs is a scalar. The default is 11025.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets No

Examples

t = 0:0.01:10*pi;
z = sin(50*t.^2);
wavplay(z')
wavwrite(z, 'C:\chirp');
clear z;
pause(2);
z = wavread('C:\chirp');
wavplay(z)
plot(t, z)

Related Topics

beep
sound
soundscaled
wavread
wavrecord
wavwrite


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit