Plot the amplitude spectrum |F(ω)| with MathScript or MATLAB as
follows:
Frequency 0 ≤ f ≤ 4000 Hz (remember to convert angular
frequency ω to oscillation frequency f),
A = 10, and
τ = 1, 2, and 4 ms (create three distinct plots).
Determine the frequency at which the first null occurs in each of the three
plots.
Discuss the relationship between the rectangular pulse width and the
width of the main lobe of the amplitude spectrum.
Figure m13.3: Rectangular pulse waveform for Problem m13.3
NI Multisim Measurements
Create a circuit with a PULSE_VOLTAGE source. Set the “Period” to
100 ms; set the remaining parameters as needed to create the pulse
shown in Figure m13.3 with A = 10. Note that the pulse must shift
right to begin at t = 0; this shift does not affect the amplitude
spectrum.
Plot the amplitude line spectrum of f(t) with a Simulate → Analyses →Fourier Analysis for τ = 1, 2, and 4 ms (create three plots). Set the
following parameter values:
Set up your myDAQ and ELVISmx instruments as follows:
Connect myDAQ Analog Output 0 to Analog Input 0, i.e., AO0
to AI0+ and AGND to AI0-.
Create the rectangular pulse f(t) with the ELVISmx Function
Generator in squarewave mode. Set the frequency to 10 Hz.
Adjust the amplitude and DC offset controls to match the pulse
waveform shown in Figure m13.3 with A = 10. Control the
pulse width with the “Duty Cycle” control.
Plot the power spectrum of f(t) on the ELVISmx Dynamic Signal Analyzer
(DSA) for τ = 1, 2, and 4 ms (create three plots). Adjust the panel controls
to match the following settings:
FFT Settings:
Frequency Span = 4000
Resolution (lines) = 400
Window = None
Averaging:
Mode = None
Frequency Display:
Units = Linear
Mode = Peak
Scale Settings:
Scale = Auto
Determine the frequency at which the first null occurs in each of the three
plots.
Further Exploration with NI myDAQ
Frequency spectrum plots normally possess much higher dynamicrange than their corresponding time-domain plots. Review the DSA
plots you created for the widest rectangular plot (τ = 4 ms),
especially the side lobe amplitudes beyond the first null frequency.
Note how their values appear quite small compared to the amplitude
of the main lobe. Now set the “Frequency Display” units to “dB”
(decibels); you can stabilize the display by setting the “Scale Settings”
from “Auto” to “Manual.” Discuss the merits of a logarithmic display
scale compared to a linear display scale.
To further experience the advantages of a logarithmic display, repeat
the experiment with a single sinusoidal component. Set the function
generator to sinusoidal mode at 500 Hz and remove the DC offset.
Display the spectrum with “Linear” units and then with “dB” units.
Stabilize and improve the measurement by setting the “Averaging”
mode to “RMS.” Discuss your observations.