LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquiring through the mircophone

In previous support I was told to use port 0 to initialize the microphone port which worked on the test exe I used to sample the waveform. I did not have access to the block diagram and cannot figure out how to record from port 0. I have played around in the instrument IO dialogue but I only see settings for LPT 1, COM 1, COM2 etc. Is there an easy way to simply acquire this signal?? If anyone has a simple VI which has an example of this it would be greatly appreciated!
0 Kudos
Message 1 of 3
(3,236 Views)
Instrument I/O Assistant won't help you; it's for talking to instruments connected through GPIB, Serial, and similar buses.

You need to use the Sound VIs. You can use the Example Finder to search for "sound" and you should find several useful examples.

Brian
0 Kudos
Message 2 of 3
(3,236 Views)
Hi Gorelick,

If you are using LabVIEW 7.0, there are also several new Express VIs that are available for you to easily perform analysis on live or stored sound data.

I've attached a zip file containing the following VIs:
The VIs included are:
1. Open Wave File Source - This VI allows the user to open an existing wave file. The wave is provided as a dynamic data type, the sound format information is provided for use in any required analysis or signal manipulations.
2. Record from Microphone - Allows the user to capture data from a microphone via the computer's sound card. The user can specify a sound format and whether to save the data to a wave file.
3. Play Wave Data - Plays sound data on a computer's speakers. This VI can
be used to listen to the differences between raw and processed sound data.
4. Save Data As Wave File - Allows the user to save data that has been processed using the waveform and express analysis tools.

Hope these help!

Kileen C.
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(3,236 Views)