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

wavrecord (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

wavrecord(n)

wavrecord(n, fs)

wavrecord(n, fs, type)

c = wavrecord(n)

c = wavrecord(n, fs)

c = wavrecord(n, fs, type)

Description

Records audio signals.

Examples

Inputs

Name Description
n Specifies the number of samples you want to acquire.
fs Specifies the sampling frequency. Valid values of fs are 8000, 11025, 22050, and 44100 Hz. fs is a scalar. The default is 11025.
type Specifies whether LabVIEW acquires a mono signal or a stereo signal. type accepts the following values.

1 (default) Mono signal
2 Stereo signal

Outputs

Name Description
c Returns the content of the acquired audio signal. c is a vector that represents a mono channel, or a matrix of two columns where each column represents one of the two stereo channels.

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

z = wavrecord(22050, 11025);
wavplay(z')
plot(z)

Related Topics

beep
plot
sound
soundscaled
wavplay


 

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