Summary: A speaker and microphone connected to a computer serve as an excellent communications channel because the transmitted information is audible. Listening to the channel while making parameter adjustments and viewing plots builds additional insight into the specific modulation scheme under study. This project describes how to characterize a "speaker-air-microphone" (SAM) channel for use in subsequent projects that use bandpass modulation techniques.
![]() |
This module refers to LabVIEW, a software development environment that features a graphical programming language. Please see the LabVIEW QuickStart Guide module for tutorials and documentation that will help you: |
| • Apply LabVIEW to Communications / Signal Processing | |
| • Get started with LabVIEW | |
| • Obtain a fully-functional evaluation edition of LabVIEW |
A speaker and microphone connected to a computer serve as an excellent communications channel because the transmitted information is audible. Listening to the channel while making parameter adjustments and viewing plots builds additional insight into the specific modulation scheme under study.
The passband limits and bandwidth of the SAM channel (Speaker-to-Air-to-Microphone) must be characterized to effectively choose modulation parameters such as carrier frequency, bit rate, and signal pulse shape. This project describes how to characterize a SAM channel for use in subsequent projects that use bandpass modulation techniques.
Refer to the following textbooks for additional background on the project activities of this module; see the "References" section below for publication details:
If you are relatively new to LabVIEW, consider taking the course LabVIEW Techniques for Audio Signal Processing which provides the foundation you need to complete this project activity, including: block diagram editing techniques, essential programming structures, subVIs, arrays, and audio.
Figure 1 illustrates the speaker-to-air-to-microphone (SAM) channel.
![]() |
The magnitude frequency response of the SAM channel can be easily measured by applying white noise to the speaker, recording the result, and calculating the power spectrum of the of the recorded signal. White noise contains equal contribution from all frequencies; therefore, any deviation from a flat power spectrum at the channel output must be the response of the channel.
The computer sound card forms part of the channel, as well. Sound card microphone inputs are often AC-coupled and do not pass DC. Microphone inputs are sometimes intentionally lowpass filtered to reduce high-frequency hiss, and all soundcard inputs include lowpass filters to serve as anti-aliasing filters.
Most modern sound cards are full duplex, meaning that they can simultaneously generate and record sound -- a necessary feature for this project. Older half duplex sound cards can still be used but require two computers, one to transmit the sound and another to receive the sound.
Create a white noise sound source to serve as the SAM channel excitation:
Refer to the video of Figure 2 for LabVIEW coding techniques for the white noise source.
Create a device to record the microphone signal:
Refer to the video of Figure 3 for LabVIEW coding techniques for the recording device.
Create a graphical indicator to display the power spectrum of the recorded microphone signal:
Refer to the video of Figure 4 for LabVIEW coding techniques for the power spectrum display.
Set up the hardware for the SAM channel. Place the microphone within a few inches of the speaker. Adjust the soundcard setup and volume controls to generate and record sound to satisfy two goals:
The video of Figure 5 for LabVIEW coding techniques for the power spectrum display.
Apply the white noise source to the SAM channel and record its response for 5 to 10 seconds. Also record the noise floor of the channel; use the identical speaker/microphone arrangement but do not generate any sound (set the "Noise Amplitude" parameter of the noise source to zero).
Subtract the noise floor measurement from the white noise measurement. The result should be approximately zero dB outside the passband region of the SAM channel.
Make hardcopy of your two measurements on the SAM channel as well as the measurement with the noise floor subtracted (right-click on the "Waveform Graph" indicator and choose "Export Simplified Image"). Annotate the plots with hand-written labels to identify the lower passband limit, the upper passband limit, and the overall bandwidth of the channel.
State your numerical criterion for choosing the passband limits. Half-power frequency, the frequency at which the response drops by 3 dB, is a standard method.
Your instructor may ask you to complete one or more of the following activities:
The video of Figure 6 shows how to retain a measurement from one run of the VI to the next.