Table 1
 |
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 Audio Signal Processing |
| • Get started with LabVIEW |
| • Obtain a fully-functional evaluation edition of LabVIEW |
Visit
LabVIEW Setup to learn how to adjust your own LabVIEW environment to match the settings used by the LabVIEW screencast video(s) in this module.
Click the "Fullscreen" button at the lower right corner of the video player if the video does not fit properly within your browser window.
Three parameters specify a sinusoidal carrier wave: amplitude, frequency, and phase.
An individual parameter or combination of parameters may be modulated by
a message to communicate information. The most basic modulation schemes switch
a single parameter between two values to signal a binary 0 or binary 1.
In this project, construct and study a transmitter that switches the carrier
wave's amplitude between zero and a non-zero value. The term switching is
also called keying (as in a telegraph key), and so the transmitter in this
project can be said to use binary amplitude shift keying (binary ASK).
-
Study the spectral characteristics of binary ASK signals using both rectangular and
raised cosine pulse shapes
-
Translate the ASK transmitter block diagram into a LabVIEW block diagram
-
Develop an ASK transmitter for the speaker-air-microphone (SAM) channel
- Summary write-up of your results
- Hardcopy of all LabVIEW code that you develop (block diagrams and front panels)
- Any plots or diagrams requested
You can easily export LabVIEW front-panel waveform plots directly to your report. Right-click on the waveform
indicator and choose "Export Simplified Image."
- LabVIEW 8.5 or later version
- Computer soundcard
- Speaker
Refer to the following textbooks for additional background on the project activities of this module;
see the "References" section below for publication details:
- Carlson, Crilly, and Rutledge -- Ch 14
- Couch -- Ch 5
- Haykin and Moher -- Ch 7
- Lathi -- Ch 13
- Proakis and Salehi (FCS) -- Ch 10
- Stern and Mahmoud -- Ch 5
Bandpass channels possess a non-zero lower cutoff frequency, and
therefore cannot transmit a baseband signal. For example, the channel
established between two voice-grade telephones begins at 300 Hz and ends at 3,000 Hz.
A digital signal (baseband type) must be shifted in frequency so that its significant
frequency components all exist within the 300 to 3,000 Hz range. Frequency shifting
may be accomplished by impressing the baseband signal onto a sinusoidal
carrier wave.
A sinusoidal carrier wave
c(t)=
A
c
cos(2π
f
c
t+
ϕ
c
)
c(t)=
A
c
cos(2π
f
c
t+
ϕ
c
)
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGJbGaaiikaiaadshacaGGPaGaeyypa0JaamyqamaaBaaaleaacaWGJbaabeaakiGacogacaGGVbGaai4CaiaacIcacaaIYaGaeqiWdaNaamOzamaaBaaaleaacaWGJbaabeaakiaadshacqGHRaWkcqaHvpGzdaWgaaWcbaGaam4yaaqabaGccaGGPaaaaa@48DA@
possesses three parameters that can be switched (or keyed) by a binary message signal:
amplitude, frequency, and phase; the resulting
digital continuous wave modulation schemes are called ASK
(amplitude shift keying), FSK (frequency shift keying), and PSK (phase shift keying),
respectively.
The Figure 1 screencast video introduces
the mathematical notation used in this module to discuss ASK modulation, and includes
a visualization of the ASK waveform.
Figure 2 illustrates the block diagram of a
binary ASK transmitter.
The transmitter's signal point mapper selects a value for each bit of
the binary message (bitstream), and the transmit filter generates
an analog signal waveform to be transmitted through the channel. The transmit
filter is also known as the pulse shaping filter.
Binary ASK maps a binary 1 to
E
b
E
b
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaadaGcaaqaaiaadweadaWgaaWcbaGaamOyaaqabaaabeaaaaa@3734@
and a binary 0 to zero;
E
b
E
b
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGfbWaaSbaaSqaaiaadkgaaeqaaaaa@3724@
denotes the energy per bit. The transmit filter scales a standard pulse shape
by these values to produce the baseband signal, which in turn is shifted in frequency
to match the channel's center frequency by multiplying by a sinusoidal carrier waveform to produce the
transmitted signal.
The Figure 3 screencast video discusses the spectrum of
the transmitted signal, especially the impact of a rectangular pulse shape on the
required bandwidth of the ASK signal.
As discussed in the previous video, the ASK signal created with rectangular pulses is
spectrally inefficient. From an intuitive
point of view, signals with sharp corners always possess a wideband spectrum. Rounding the
corners should therefore produce a transmitted signal that does not require as much bandwidth.
The raised cosine pulse is a standard pulse shape widely used in communication systems that offers much better spectral
efficiency; see the video in pam_RaisedCosinePulse.vi for more background on this important
pulse shape, including an explanation of its excess bandwidth pulse shape parameter.
The Figure 4 screencast video discusses the
spectrum of the transmitted ASK signal with raised cosine pulse shaping.
Consider once again the transmitter block diagram of
Figure 2. In a fully digital implementation, the
pulse shaping filter output must be a sampled-value waveform. Rectangular pulse shapes are easy
to implement: a given binary symbol simply maps to an array of constant values. Nonrectangular
pulses take a bit more effort, however, especially when the pulse shape must extend over more
than one bit interval.
The Figure 5 screencast video describes a
pulse shaping filter implementation that can be used with any
pulse shape. The basic idea involves driving an FIR filter with an impulse train.
Build the subVIs listed below. You may already have some of these available
from previous projects.
Demonstrate that each of these subVIs works properly before continuing to the next part.
Assemble an ASK transmitter using the subVIs you created in the previous step; refer to
the ASK transmitter diagram of Figure 2.
Drive the transmitter with a random bitstream containing equiprobable binary values. Plot
the power spectrum of the ASK signal
using the "Express | Signal Analysis | Spectral Measurements" Express subVI. Connect the
transmitter output to the speaker using the technique you learned in
Speaker-Air-Microphone Channel Characterization.
Include the following controls on the front panel:
-
fc, carrier frequency [Hz] -
fs, sampling frequency [Hz] -
Eb, energy per bit -
Tb, bit interval [s] -
bitstream length -
seed
Include the following indicators on the front panel:
-
ASK power spectrum -- waveform graph -
time domain -- transmit filter and product modulator signals overlaid on the same waveform graph -
Rb, bit rate [Hz] -
samples per bit interval -
total signal duration [s]
Figure 6 illustrates a suggested layout for the
VI front panel and shows the expected results of the initial parameter choices for the next section.
Begin with the following front panel control values:
-
fc, carrier frequency [Hz] = 5,000 Hz -
fs, sampling frequency [Hz] = 40,000 Hz -
Eb, energy per bit = 1 -
Tb, bit interval [s] = 0.001 s -
bitstream length = 1000 -
seed = -1
These values should produce a bit rate of 1,000 Hz and total signal duration of 1 second.
-
Run the VI several times. You should observe a different sequence for the bitstream for each run. Next, change the
seed
to an integer larger than -1 and run the VI several times again. You should now observe the bitstream sequence to be the same
for each run. Use a seed value other that -1 to generate a constant bitstream sequence, when needed.
-
Vary the bit energy
E
b
E
b
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGfbWaaSbaaSqaaiaadkgaaeqaaaaa@3724@
and study the time-domain signals and power spectrum. Summarize the
behavior of the signals as a function of
E
b
E
b
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGfbWaaSbaaSqaaiaadkgaaeqaaaaa@3724@
.
-
Vary the bit interval
T
b
T
b
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGubWaaSbaaSqaaiaadkgaaeqaaaaa@3733@
and study the time-domain signals and power spectrum. Summarize the
behavior of the signals as a function of
T
b
T
b
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGubWaaSbaaSqaaiaadkgaaeqaaaaa@3733@
. Be sure to comment on the following points:
(a) What does ASK sound like for a long bit interval such as 0.01 seconds compared to a short
bit interval such as 0.0005 seconds?
(b) How does the bit rate value manifest itself in the power spectrum display? Hint: Recall
what you know about the first-null bandwidth of a sinc function.
(c) How does the choice of bit interval affect the total time to transmit the message?
-
Vary the carrier frequency
f
c
f
c
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGMbWaaSbaaSqaaiaadogaaeqaaaaa@3746@
and study the time-domain signals and power spectrum. Summarize
the behavior of the signals as a function of
f
c
f
c
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGMbWaaSbaaSqaaiaadogaaeqaaaaa@3746@
.
-
Reset the front panel controls to the initial value listed at the beginning of this section.
Change the carrier frequency to 5,001 Hz, then to 5,002 Hz, and so on in small steps. What change do you
observe in the sound of the ASK signal and the time-domain plot? Hint: zoom in on the ASK
signal waveform so that you can see the signal between bit transition. Draw a conclusion: what
relationship must exist between the carrier frequency
f
c
f
c
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGMbWaaSbaaSqaaiaadogaaeqaaaaa@3746@
and the bit interval
T
b
T
b
MathType@MTEF@5@5@+=feaagaart1ev2aqatCvAUfeBSjuyZL2yd9gzLbvyNv2CaerbuLwBLnhiov2DGi1BTfMBaeXatLxBI9gBaerbd9wDYLwzYb1uaebbnrfifHhDYfgasaacH8srps0lbbf9q8WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=Jbba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaabaqaciGacaGaaeqabaWaaeaaeaaakeaacaWGubWaaSbaaSqaaiaadkgaaeqaaaaa@3733@
to ensure that chopped edges do not occur?
Plot time-domain waveforms and power spectra for several representative choices of parameter values.
-
Modify the VI front panel to include a Boolean control to conveniently switch between rectangular and raised cosine
pulse shapes. Use a case structure on the block diagram to generate the two types of pulse shapes. Include
front panel controls for the
alpha (excess bandwidth) parameter and
bit intervals for support controls of
the pam_RaisedCosinePulse.vi subVI.
-
Adjust the front panel control values to match those specified at the beginning of the previous section.
-
Select a rectangular pulse shape, and run the VI one time with autoscaling enabled on the power spectrum display.
Right-click on the Y-axis of the power spectrum display and uncheck the "AutoScale Y" option. Next, select the
raised cosine pulse shape and run the VI again. Zoom in on the time-domain signal plot, and disable autoscaling
on the X-axis to ensure that the zoom level is retained from one run of the VI to the next.
-
Experiment with different values of the raised cosine pulse controls, then compare your results to those of the
rectangular pulse shape. Be sure to comment on the following points: (a) signal shape in the time domain, (b)
signal shape in the frequency domain (power spectrum), and (c) sound of the transmitted signal -- try a larger bit
interval (and short bitstream length) so that you can clearly hear the difference between rectangular and
raised cosine pulse shaping).
-
Recall the work that you did to characterize the SAM channel in
Speaker-Air-Microphone (SAM) Channel Characterization, especially the lower and
upper passband limits. Select raised cosine pulse shaping, and then choose values for carrier frequency and bit interval
to make the transmitted signal fully occupy the channel passband region. State your two values. Listen to this signal for a
bit -- what does a "fully utilized channel" sound like? Can you perhaps now explain some parts of a
typical telephone dial-up modem initiation sequence? (Click link
to listen).
-
Carlson, A. Bruce, Paul B. Crilly, and Janet C. Rutledge, "Communication Systems," 4th ed., McGraw-Hill, 2002. ISBN-13: 978-0-07-011127-1
-
Couch, Leon W. II, "Digital and Analog Communication Systems," 7th ed., Pearson Prentice Hall, 2007. ISBN-10: 0-13-142492-0
-
Haykin, Simon, and Michael Moher, "Introduction to Analog and Digital Communication Systems," 2nd ed., Wiley, 2007. ISBN-13: 978-0-471-43222-7
-
Lathi, Bhagwandas P., "Modern Digital and Analog Communication Systems," 3rd ed., Oxford University Press, 1998. ISBN-10: 0-19-511009-9
-
Proakis, John G., and Masoud Salehi, "Fundamentals of Communication Systems," Pearson Prentice Hall, 2005. ISBN-10: 0-13-147135-X
-
Stern, Harold P.E., and Samy A. Mahmoud, "Communication Systems," Pearson Prentice Hall, 2004. ISBN-10: 0-13-040268-0
"Examines Binary Amplitude Shift Keying (ASK) modulation"