Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Sound Input VIs (Windows, Linux)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Owning Palette: Sound VIs

Use the Sound Input VIs to configure and control a sound input device.

(Windows) You must have DirectX 8.0 or later to use the Sound Input VIs.

(Linux) You must have the Open Sound System (OSS) driver to use this VI. LabVIEW probes for devices by looking for files named /dev/dsp or /dev/dspX, where X is an integer between 0 and 16. LabVIEW attempts to open each device for input and output. If LabVIEW cannot detect the sound card, check that a device file named /dev/dsp or /dev/dspX exists on the local system and that you have permission to read from and write to the device. If you have moved this device to a location other than the default, LabVIEW can work with a symbolic link.

Palette ObjectDescription
Acquire SoundAcquires data from a sound device. This Express VI automatically configures an input task, acquires the data, and clears the task after the acquisition completes.
Sound Input ClearStops acquisition of data, clears the buffer, returns the task to the default unconfigured state, and clears the resources associated with the task. The task becomes invalid.
Sound Input ConfigureConfigures a sound input device to acquire data and send the data to the buffer. Use the Sound Input Read VI to read the data.
Sound Input ReadReads data from a sound input device. You must use the Sound Input Configure VI to configure the device. You must manually select the polymorphic instance you want to use.
Sound Input StartStarts data acquisition from the device. This VI is necessary only if Sound Input Stop has previously been called.
Sound Input StopStops data acquisition from the device. Use the Sound Input Clear VI to clear the data in the buffer. Use the Sound Input Start VI to restart the acquisition after calling the Sound Input Stop VI.

Resources


 

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