DSP Laboratory: Analog to Digital and Digital to Analog Conversion *

Similar documents
Introduction To LabVIEW and the DSP Board

ENGR 1000, Introduction to Engineering Design

Lab experience 1: Introduction to LabView

Basic LabVIEW Programming Amit J Nimunkar, Sara Karle, Michele Lorenz, Emily Maslonkowski

ME EN 363 ELEMENTARY INSTRUMENTATION Lab: Basic Lab Instruments and Data Acquisition

Virtual instruments and introduction to LabView

Data Acquisition Using LabVIEW

Analyzing and Saving a Signal

ENGR 1000, Introduction to Engineering Design

Video Surveillance *

Footnotes and Endnotes

Quick Start for TrueRTA (v3.5) on Windows XP (and earlier)

Lab 2: A/D, D/A, and Sampling Theorem

WAVES Cobalt Saphira. User Guide

Background. About automation subtracks

Laboratory 5: DSP - Digital Signal Processing

Getting Started with the LabVIEW Sound and Vibration Toolkit

Software Quick Manual

Lab 1 Introduction to the Software Development Environment and Signal Sampling

Teacher s AIDE Training System. EZ Teach Silver Installation

Session 1 Introduction to Data Acquisition and Real-Time Control

HOW TO MAKE A TABLE OF CONTENTS

Exercise #1: Create and Revise a Smart Group

Using SignalTap II in the Quartus II Software

Using a Photron FASTCAM APX RS High-Speed Camera with MiDAS DA

RF Solution for LED Display Screen

DETEXI Basic Configuration

Altera s Max+plus II Tutorial

Fig. 1. The Front Panel (Graphical User Interface)

CHAPTER 3 EXPERIMENTAL SETUP

AVerTV 6. User Manual. English DISCLAIMER COPYRIGHT

Recording of Coincidence Signals in a Software Medium

NJU26125 Application Note PEQ Adjustment Procedure Manual New Japan Radio Co., Ltd

Table of Contents Introduction

LMH0340/LMH0341 SerDes EVK User Guide

EYE TRACKING DATA ANALYSIS TOOL

Design and Realization of the Guitar Tuner Using MyRIO

EndNote Tutorial Handout Table of Contents

VISSIM Tutorial. Starting VISSIM and Opening a File CE 474 8/31/06

2. Get a free Adobe ID at adobe.com (Click Sign In (top right corner), click Get an Adobe ID, fill in the form and click Sign Up)

DM1624, DM1612, DM812

EEG A1452 SCTE-104 Inserter Frame Card

MICROSOFT WORD FEATURES FOR ARTS POSTGRADUATES

Table of content. Table of content Introduction Concepts Hardware setup...4

Interactive Virtual Laboratory for Distance Education in Nuclear Engineering. Abstract

A-ATF (1) PictureGear Pocket. Operating Instructions Version 2.0

Using different reference quantities in ArtemiS SUITE

LIO-8 Quick Start Guide

IP Broadcasting System. User manual

Ultra 4K Tool Box. Version Release Note

Research of Intelligent Traffic Light Control System Design Based on the NI ELVIS II Platform Yuan Wang a, Mi Zhou b

FS3. Quick Start Guide. Overview. FS3 Control

Statement SmartLCT User s Manual Welcome to use the product from Xi an NovaStar Tech Co., Ltd. (hereinafter referred to as NovaStar ). It is our great

SignalTap: An In-System Logic Analyzer

(Skip to step 11 if you are already familiar with connecting to the Tribot)

LabView Exercises: Part III

DIGITAL PORTABLE RECORDER TRAINING MANUAL FOR COURT REPORTING OFFICERs

Octaves and the Major-Minor Tonal System *

Reference Guide 2015 ZOOM CORPORATION. Copying or reprinting this manual in part or in whole without permission is prohibited.

Reason Overview3. Reason Overview

A few quick notes about the use of Spectran V2

Getting started with Spike Recorder on PC/Mac/Linux

USB AUDIO INTERFACE I T

My XDS Receiver- Affiliate Scheduler

IP LIVE PRODUCTION UNIT NXL-IP55

MadiXtreme / Alpha-Link XLogic I/O system for PC and Mac Setup Guide V1.0 XLogic. This is SSL.

VXI RF Measurement Analyzer

Ensemble QLAB. Stand-Alone, 1-4 Axes Piezo Motion Controller. Control 1 to 4 axes of piezo nanopositioning stages in open- or closed-loop operation

Embedded Signal Processing with the Micro Signal Architecture

AMIQ-K2 Program for Transferring Various-Format I/Q Data to AMIQ. Products: AMIQ, SMIQ

Scan Converter Quick Installation Guide

Exercise 5-1. Troubleshooting Techniques EXERCISE OBJECTIVE DISCUSSION OUTLINE DISCUSSION. Signal flow tracing

Yellow Frog. Manual Version 1.1

SIGNAL PROCESSOR. Operation Manual

EndNote X7: the basics (downloadable desktop version)

USER S GUIDE DSR-1 DE-ESSER. Plug-in for Mackie Digital Mixers

Digital Logic. ECE 206, Fall 2001: Lab 1. Learning Objectives. The Logic Simulator

LabView Exercises: Part II

The. finale. Projects. The New Approach to Learning. finale. Tom Carruth

Video Conference Classroom Documentation

NOTICE: This document is for use only at UNSW. No copies can be made of this document without the permission of the authors.

D-901 PC SOFTWARE Version 3

VISSIM TUTORIALS This document includes tutorials that provide help in using VISSIM to accomplish the six tasks listed in the table below.

Activity P27: Speed of Sound in Air (Sound Sensor)

A BEGINNER'S GUIDE TO ENDNOTE ONLINE

The DataView PowerPad III Control Panel

RT-DRIVE DLM808 DIGITAL PROCESSOR AUDIO MATRIX PROCESSOR

Cablecast Server. Setup Guide. c Tightrope Media Systems For Cablecast version Build 74

Musical Signal Processing with LabVIEW Introduction to Audio and Musical Signals. By: Ed Doering

Table of Contents. Chapter 1 Introduction System Requirements Chapter 2 Introducing the AVerTV Application... 3

MIE 402: WORKSHOP ON DATA ACQUISITION AND SIGNAL PROCESSING Spring 2003

RedRat Control User Guide

FS1-X. Quick Start Guide. Overview. Frame Rate Conversion Option. Two Video Processors. Two Operating Modes

CLIPSTER. 3D LUT File Generation with the Kodak Display Manager. Supplement

Ready. Set. Go make your show. Your guide to creating your first video program with

Performing Signal Integrity Analyses

The Circle of Fifths *

Logic Controls LV3000 VGA Connected Virtual Pole Display

Defining and Labeling Circuits and Electrical Phasing in PLS-CADD

SIGNAL PROCESSOR. Operation Manual

Transcription:

OpenStax-CNX module: m13035 1 DSP Laboratory: Analog to Digital and Digital to Analog Conversion * Erik Luther This work is produced by OpenStax-CNX and licensed under the Creative Commons Attribution License 2.0 1 A/D and D/A Conversion NI LabVIEW DSP is a block diagram-based DSP development platform that allows the user to quickly set up complex DSP algorithms. The true power of LabVIEW lies in its ability to interface with external DSP devices and/or internal sound cards that are installed on the PC. The developed algorithms are downloaded to the DSP board, which then runs the algorithm in a real-time environment. In this lab, we will only scratch the surface regarding LabVIEW DSP's capabilities. For starters, we will look at how LabVIEW DSP interfaces with the A/D and D/A operations of the DSP board. Specically, we will simply connect the A/D converter to the D/A converter so that the DSP system plays back audio signal sent to it. 1.1 Simple Sampling/Reconstruction System 1. Keeping the Surround Mixer open, start LabVIEW Embedded Edition. On the startup screen from the Execution Target dropdown menu select your hardware device. Refer to Figure 2 below for details. Execution target determines where your application will execute when you run it. 2. Note: All the screenshots of LabVIEW windows are taken with the SPEEDY-33 selected as the execution target. However, the instructions still apply for any other target unless otherwise specied. * Version 1.1: Sep 20, 2005 1:17 pm -0500 http://creativecommons.org/licenses/by/2.0/

OpenStax-CNX module: m13035 2 Figure 1: Switch Execution Target to your DSP hardware device 1.1.1 Start With a New Blank LabVIEW VI 1. Select FileNew VI to start a new LabVIEW application. (Note: A LabVIEW application is called Virtual Instrument or VI). Any LabVIEW VI consists of two windows; a Front Panel where you will design your user interface and a Block Diagram where you will add various block components or VIs and wire them together to design your DSP system. On starting a new VI you will see the Front Panel and Block Diagram windows for your application appear on the screen. 2. Switch over to the Block Diagram window by left clicking on it and start developing your application. You will now develop a simple VI to read in an analog input from the A/D channel and play it back using the D/A channel. From the menu select WindowShow Functions Palette. The Functions pallet contains functions or VIs that you will wire together to develop the application. Click on the Elemental I/O palette and bring out the Analog Input Elemental I/O node and place it on the block diagram. This node is used to read in analog input from the A/D channel. Similarly place the Analog Output Elemental I/O node on the block diagram. Refer to Figure 3 below for details.

OpenStax-CNX module: m13035 3 Figure 2: Analog Input and Analog Output Elemental I/O nodes. 3. The Analog Input and Output nodes control the input/output ow of sound waves/data between the analog input channels and the DSP. The Analog Input node controls the A/D converter, which converts the analog input signal (from the microphone, function generator, or any other analog sound source) to a sequence of numbers (digital data) and passes the data on to the DSP. The analog Output node controls the D/A converter, which takes the digital data from the DSP and converts it back to an analog signal. 4. Now we need to congure the Analog Input and Analog Output nodes. Double click on the Analog Input node to bring up its conguration dialog. In this dialog specify the following setting: General Tab: Resource: 2 channel multiple samples Conguration Tab Sample Rate in Hz: 48000

OpenStax-CNX module: m13035 4 Framesize: 256 5. Click OK when done. Figure 3 6. Double click on the Analog Output node. On its Conguration dialog specify the parameters as follows: General Tab: Resource: 2 channel multiple samples Conguration Tab Sample Rate in Hz: 48000

OpenStax-CNX module: m13035 5 Figure 4 7. Before running any DSP algorithm, the Analog Input and Output nodes need to be wired together. Hover your mouse over the Left channel output of the Analog Input node, the mouse curser will change to a wire spindle. Left click and drag the wire to the Left channel input of the Analog Output node. 8. We will now place a While Loop so that the process can be run in a loop. Bring out a While Loop from the FunctionsStructures Palette. Place the While Loop around the two nodes by left clicking on the top left corner and dragging it to the bottom right. The nal application will look like Figure 4. Notice a stop button appears which is wired to the conditional terminal of the loop. You will also see a stop button on the front panel. Once the application is run you will press this button to stop the application.

OpenStax-CNX module: m13035 6 Figure 5: Completed Application 9. Save your VI by selecting FileSave As and storing it in the directory you created earlier. You can give the le any name you want (such as lab1setup), but use the default extension of vi. 10. Now you need to prepare an audio input for your system. First, go to the Surround Mixer and activate the Wave/mp3 input. Place a CD in the CD player in the PC, select the Windows Media Player program, and press play. (Note: The program may automatically start when you insert the CD). You should not hear anything yet, because you haven't compiled and downloaded the simple playback program to the DSP yet. 1.1.2 Run LabVIEW Code On The DSP 1. You're nally ready to run this very simple DSP system. (If using the SPEEDY-33 make sure that the Jumpers are in the Line position). To run the application left click on the run arrow on the toolbar

OpenStax-CNX module: m13035 7 as shown in Figure 4. Notice on the LabVIEW DSP Module Status Monitor window comes up and displays the Status as the application is compiled and downloaded onto the DSP. The Memory Usage bar at the bottom displays the amount of memory being used. Once Status displays Running on Target you should hear the music through the headphones. Figure 6: LabVIEW DSP Module Status Monitor 2. To use the microphone input instead of the CD Audio input, simply mute the Wave input button on the Surround Mixer and activate the Microphone input instead. Give it a try. You can very quickly toggle between (or even combine) dierent inputs by using the Surround Mixer. 3. Stop the program by pressing the Stop button on the Front Panel. 4. Eects of Sampling Frequency on Sound Quality 5. Now we'll briey examine the eects of sampling frequency on the sound quality of both music and voice signals. 6. Run the program again with CD audio input (using the original sampling frequency of 48000 Hz.) and note the sound quality. 7. Stop the program and change the sampling frequency (in both the Audio Input and Audio Output nodes) to 18000 Hz. Run the program again and listen to the sound quality. Repeat with a sampling frequency of 8000 Hz. 8. Repeat steps 1-2 but use the microphone input instead of the CD input. 1.2 Answer These Questions Exercise 1 Describe how sampling frequency seems to aect the sound quality for both speech and music. Based on your observations, which seems to be most aected by sampling frequency, music or speech?