Acquire Sound

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.


icon

Dialog Box Options

Option Description
Device

Lists the sound devices you have connected.

#Channels

Specifies 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.

Preview

Displays a preview of the sound operation in the graph.

Graph Preview

Displays a preview of the sound operation.

Inputs/Outputs

  • cu32.png Device

    Lists the sound devices you have connected.

  • cdbl.png Sample rate (Hz)

    Specifies the sample rate in hertz.

  • ci32.png Resolution (bits)

    Specifies the quality of each sample in bits. The default is 16 bits.

  • cerrcodeclst.png error in (no error)

    Describes error conditions that occur before this node runs.

  • cdbl.png Duration (s)

    Sets the number of seconds for which you want to acquire sound.

  • ci32.png #Channels

    Specifies the number of channels. 1 is Mono, and 2 is Stereo.

  • iexpdynwdt.png Data

    Returns 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.

  • ierrcodeclst.png error out

    Contains error information. This output provides standard error out functionality.