Acquire Sound Express VI

Owning Palette: Sound Input VIs

Requires: Base Development System

Acquires data from a sound device. This Express VI automatically configures an input task, acquires the data, and clears the task after the acquisition completes.

(Windows) You must have DirectX 8.0 or later to use this VI. (Linux) You must have the Open Sound System (OSS) driver to use this VI.

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs
 Add to the block diagram  Find on the palette

Dialog Box Options

ParameterDescription
DeviceLists the sound devices you have connected.
#ChannelsSpecifies the number of channels. 1 is Mono, and 2 is Stereo.
Resolution (bits)Specifies the quality of each sample in bits. The default is 16 bits.
Duration (s)Sets the number of seconds for which you want to acquire sound.
Sample rate (Hz)Specifies the sample rate in hertz.
PreviewDisplays a preview of the sound operation in the graph.
Graph PreviewDisplays a preview of the sound operation.

Block Diagram Inputs

ParameterDescription
DeviceLists the sound devices you have connected.
Duration (s)Sets the number of seconds for which you want to acquire sound.
Sample rate (Hz)Specifies the sample rate in hertz.
#ChannelsSpecifies the number of channels. 1 is Mono, and 2 is Stereo.
Resolution (bits)Specifies the quality of each sample in bits. The default is 16 bits.
error inDescribes error conditions that occur before this node runs.

Block Diagram Outputs

ParameterDescription
DataReturns the data this Express VI acquires from the selected device using the settings you specify in the configuration dialog box. You can convert this output to a waveform or one-dimensional array of waveforms (one per channel) by using the Convert from Dynamic Data function.
error outContains error information. This output provides standard error out functionality.