lab dsp.pdf

19
Prepared By:- Nikhil Marriwala Digital Signal Processing Lab

Upload: lucky

Post on 29-Sep-2015

243 views

Category:

Documents


0 download

TRANSCRIPT

  • Prepared By:- Nikhil Marriwala

    Digital Signal Processing Lab

  • Prepared By:- Nikhil Marriwala

  • Prepared By:- Nikhil Marriwala

    Digital Signal Processing Lab (New proposed Lab)

    The following experiments to be performed using LabVIEW S/W &

    Speedy33 H/W.

    1. To study and perform Sampling and Quantization.

    2. To generate different types of test signals.

    3. To study and create a two-tone sine wave.

    4. To study various Window types (Hanning, Hamming, Flat Top,

    Blackman, Kaiser).

    5. To study DFT and determine its response (DFT Coefficients and phase) for different type of signals.

    6. To design FIR filter with different topology and to study its response.

    7. To design IIR filter with different topology and to study its response.

    8. To study different Digital Modulation techniques (ASK, PSK, FSK,

    QPSK).

    9. To study and perform the results convolution sum with a square, triangle and sinc data sequence.

    10. To Perform FFT transform with different windowing functions and perform various spectral measurement (Magnitude, Power Spectral

    Density and Power Spectrum).

    11. To study and perform Laplace, Fourier and Z transform.

    12. To design Fast Hilbert and Inverse Fast Hilbert Transform.

    13. To acquire the audio signal and perform different operations (Windowing, filtering...) using DSP processor

  • Prepared By:- Nikhil Marriwala

    Experiment 1: To Study and perform Sampling and Quantization

    Front Panel

    Block Diagram

    This experiments takes various input signal like sine, cosine. And based on given sampling

    information it samples the data. By using frequency and amplitude we can control the sampled

    signal.

    For quantization, it takes signal from signal generator and by using qnantizer block quantized the

    data.

    With the help of quantization interval block we can control the quantization steps.

  • Prepared By:- Nikhil Marriwala

    Front Panel

    Block Diagram

  • Prepared By:- Nikhil Marriwala

    Experiment 2: To generate different types of test signals.

    Front Panel

    Block diagram This experiment uses the Frequency Sweep Generator Express VI and other Embedded Waveform VIs

    to show the different types of signals the DSP target can generate.

    While the example VI is running, you can adjust the following front panel controls:

    Binomial Noise Trial Probability--Determines the percentage of noise the Embedded Binomial Noise

    Waveform VI produces.

    Frequency--Determines the frequency of the generated waveforms.

  • Prepared By:- Nikhil Marriwala

    Experiment 3: To study and generate a two tone sine wave

    Front Panel

    Block diagram

    This experiment shows how to create a two-tone sine wave by adding two generated sine waves together.

    The waveform graphs on the front panel show the input waves and the combined wave. Change the

    frequency and amplitude of each input wave by using the Tone One and Tone Two Frequency and

    Amplitude slider controls. The DSP target generates both waves and performs the digital-to-analog

    conversion.

  • Prepared By:- Nikhil Marriwala

    Experiment 4: To study various Window types (Hanning, Hamming, Blackman, Flat-

    Top, Kaiser) and its effect on a test signal.

    Front Panel

    Block Diagram

    This experiment uses the Frequency Sweep Generator Express VI and different Windows VIs to show

    different types of windowing filters. Windowing changes the shape of the signal in the time domain.

    The DSP target generates a sweep waveform signal. The Windows VIs perform windowing on the

    signal. The digital-to-analog converter (DAC) output channel on the DSP target generates the original

    signal.

    The DSP target runs the sweep generator, windowing algorithms, and analog output. You can observe

    the effects of the different Windows VIs on the input signal on the front panel on the host computer.

  • Prepared By:- Nikhil Marriwala

    Experiment 5: To study DFT and determine its response (DFT Coefficients and phase)

    for different types of signals.

    Front Panel

    Block diagram

    This experiments Filters an input signal using the Finite Impulse Response (FIR) filter design

    technique. You can specify the type of the filter, such as low pass or band pass; filter topology,

    such as Equi-ripple or Windowed FIR; and filter specifications, such as filter order or cutoff

    frequency. You can feed a single channel or multiple channels to the Digital FIR Filter VI used in

    this experiments.

  • Prepared By:- Nikhil Marriwala

    Experiment 6: To design FIR Filter with different topology and to study its

    response.

    Front Panel

    Block Diagram

    This experiments Filters an input signal using the Finite Impulse Response (FIR) filter design technique.

    You can specify the type of the filter, such as low pass or band pass; filter topology, such as Equi-

    ripple or Windowed FIR; and filter specifications, such as filter order or cutoff frequency. You can feed

    a single channel or multiple channels to the Digital FIR Filter VI used in this experiments

  • Prepared By:- Nikhil Marriwala

    An example of LabVIEW program of designing a digital F|IR Filter is shown as follows.

    Front Panel

    Block Diagram

  • Prepared By:- Nikhil Marriwala

    Experiment 7: To design FIR Filter with different topology and to study its response.

    Front Panel

    Block Diagram

    This experiments Filters an input signal using the Infinite Impulse Response (IIR) filter design

    technique. You can specify the type of filter, such as low pass or band pass; filter topology, such as

    Butterworth or Chebyshev; and filter specifications, such as filter order or cutoff frequency. You can

    feed a single channel or multiple channels to the Digital IIR Filter VI used in this experiments.

  • Prepared By:- Nikhil Marriwala

    Experiment 8: To study different Digital Modulation techniques (ASK, PSK FSK,

    QPSK).

    Front Panel

    Block Diagram

    This experiments demonstrates generation of a phase-continuous ASK, PSK, FSK, QPSK modulated

    signal using an arbitrary waveform generator and NI-FGEN. The experiments can generate ASK (same

    for PSK, FSK, QPSK) formats such as 2-ASK, 8-ASK etc. The experiments applies a pulse-shaping filter

    to the message signal, resamples the data to suit the timing specifications of the arb, and ensures

    phase-continuity in the data.

  • Prepared By:- Nikhil Marriwala

    Experiment 9: To study and perform the results convolution sum with a square,

    triangle and sinc data sequence.

    Block Diagram

    This experiments shows the result of a convolution sum with a square, triangle, and sinc data

    sequence. The graphs on the front panel display the original waves and the convolution of a sinc

    pattern wave with a sinc wave, a triangle wave, and a square wave.

    While the experiment is running, shift the h(n) sequence from left to right using the Shift h(n) slider

    control on the front panel. The graphs of the resulting signals appear on the front panel.

  • Prepared By:- Nikhil Marriwala

    Experiment 10: To perform FFT with different windowing and perform various

    spectral measurement (Magnitude, PSD, Power Spectrum).

    Front Panel

    Block Diagram

    This experiments computes the averaged power spectrum of a simulated input signal. This allows you

    to specify various averaging modes for your measurement, such as RMS averaging, vector averaging,

    or peak hold, as well as the number of averages. You can observe the influence of these averaging

    parameters, typically on the noise floor, and notice that vector averaging requires the use of a trigger

    in order to lower the noise floor without lowering the fundamental along with it. You also can specify

    the type of window to use in this measurement, such as a Hanning or Flat Top window

  • Prepared By:- Nikhil Marriwala

    Experiment 11: To study and perform Laplace, Fourier and Z transform.

    Front Panel

    Block Diagram

    This experiments demonstrates how to recalculate a discrete transfer function (Z- Transform), Laplace

    Transform with a slower sampling time.

    It also calculates the Fourier and Lomb spectrum for signals evenly spaced or randomly spaced in time

  • Prepared By:- Nikhil Marriwala

    Experiment 12: To design Fast Hilbert and Inverse Fast Hilbert transform.

    Front Panel

    Block Diagram

    This experiments calculate Fast Hilbert and Inverse Fast Hilbert Transform of input signal, this

    experiments also demonstrates how to detect echoes in a signal using the Hilbert Transform

  • Prepared By:- Nikhil Marriwala

    Experiment 13: To acquire the audio signal and perform different operations

    (Filtering, Windowing) and analysis using DSP processor.

    Front Panel

    Block Diagram

    This experiments shows the on-board microphones of the DSP target acquiring a stereo acoustic signal.

    The graphs on the front panel of the host computer display the data from the left input channel and

    right input channel.

    The DSP target acquires the analog input. On the front panel, you can see the waveform data from the

    left and right input channels of the DSP target.

  • Prepared By:- Nikhil Marriwala

    LabVIEW Based DSP Projects

    Design Sound Recorder using LabVIEW and Speedy33 Design of FSK Modem

    Acoustic Distance measurement

    Noise cancellation for ECG signal by Notch filter

    Voice Recognition for particular frequency

    Etc..