DSP Laboratory: Analog to Digital and Digital to Analog Conversion



Similar documents
Lab 3: Introduction to Data Acquisition Cards

Audio-Technica AT-LP60-USB, AT-LP120-USB, AT-LP240-USB & AT-LP1240-USB Turntables. Software Guide

PM1122 INT DIGITAL INTERFACE REMOTE

LabVIEW Day 1 Basics. Vern Lindberg. 1 The Look of LabVIEW

Audio Only Broadcast through Flash Media Live Encoder On Windows

LabVIEW DSP Test Integration Toolkit for TI DSP

Getting Started with Zoom

Page 1 S5.5 Monitoring Software Manual Rev 1.2 for Software Ver 1.0

Lab View with crio Tutorial. Control System Design Feb. 14, 2006

User Guide. VT1708A VIA HD Audio Adeck For Windows 2000, Windows XP & Server Jun Revision 1.1e

GUIDE. Give PowerPoint a Voice: Developing. Narrated Presentations on a Windows PC. Donna Carnduff. dcarnduf@utk.edu.

Hands-On: Introduction to Object-Oriented Programming in LabVIEW

Quick Start Using DASYLab with your Measurement Computing USB device

Make Voice Calls and Share Documents using Skype*

MICROSOFT OUTLOOK 2010 WORK WITH CONTACTS

CTI Products. TurboVUi Dispatch. Demo Installation and Test Drive. Document # S For Version 7 Software

Configuring the SST DeviceNet OPC Server

Getting Started on the PC and MAC

LABVIEW DSP TEST TOOLKIT FOR TI DSP

1. Installing The Monitoring Software

EET 310 Programming Tools

QUICK SETUP GUIDE SETUP FOR ICONNEX SOUNDCARD AND AUDACITY RECORDING SOFTWARE

Cassette2CD Wizard User's Manual

ProFiler Client Software User s Guide

PART 1. Using USB Mixer with a Computer

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

Getting Started with the LabVIEW Mobile Module

Windows Movie Maker 2012

Audacity. For use with MFL Speaking Tests. User Guide (Microsoft Windows version)

EE289 Lab Fall LAB 4. Ambient Noise Reduction. 1 Introduction. 2 Simulation in Matlab Simulink

WebEx Recorder and Player

Call Recorder Oygo Manual. Version

VIA High Definition Audio VDeck User Guide Black Skin

First Bytes Programming Lab 2

Soft Call Recorder v3 Manual Version

DCT-16 USB HD Audio Converter

Installing S500 Power Monitor Software and LabVIEW Run-time Engine

Installing MPU-401 Compatible Cards in Windows 95

Creating Forms With Adobe LiveCycle Designer 8.2

Exercise 10: Basic LabVIEW Programming

Unified Communications Using Microsoft Office Live Meeting 2007

Backing Up and Deleting Files

SMART Board User Guide for PC

VM-4 USB Desktop Audio Device Installation Guide

How to create a Flash banner advert in DrawPlus X2

Recording and Editing Audio with Audacity

VM-8 USB Desktop Audio Device Installation Guide

What is My Teamwork? What s new in this release? MY TEAMWORK 5.0 QUICK START GUIDE

Tutorial. Part One -----Class1, 02/05/2015

Getting Started Manual

Canvas Conferencing for Students

Using WebEx Player. Playing a recording. Installing WebEx Player. System requirements for listening to audio in a recording

SHORETEL CALL MANAGER Installation Instructions:

Internet Access to a Radio Astronomy Observatory Whitham D. Reeve ( 2012 W. Reeve)

DVR4C Remote Viewer Operation Manual Table of Contents EN 3 1. OVERVIEW MINIMUM PC REQUIREMENTS INSTALLING THE PROGRAM...

Step 1: Select the Start Menu, then Control Panel.

MANUAL (p. 2) USB Turntable HAV-TT20USB

Basics. Mbox 2. Version 7.0

Plena Voice Alarm System Firmware update

AI Audio 2 (SoundMAX High Definition Audio utility)

Remote Viewer Recording Backup

Audiomedia III Installation Guide

P420-M TM USB speakerphone

Lab 4 - Data Acquisition

Network Video Monitor Software

Microsoft PowerPoint 2010

Cell Phone Vibration Experiment

User Manual. For additional help please send a detailed to Support@phnxaudio.com. - 1 Phoenix Audio Technologies

WAVES. MultiRack SETUP GUIDE V9.80

Avaya Flare Experience for Windows Quick Reference

White Noise Help Guide for iphone, ipad, and Mac

ivms-4200 Client Software Quick Start Guide V1.02

Tutorial for Programming the LEGO MINDSTORMS NXT

SMART Board Menu. Full Reference Guide

INTELLECT TM Software Package

GETTING STARTED WITH DJCONTROL AIR+ AND DJUCED 40

College of Continuing Education Video Production Room

Unified Communications

USER GUIDE Version 2.0

Adobe Acrobat: Creating Interactive Forms

ivms-4200 Client Software Quick Start Guide

Working with SQL Server Integration Services

User s Guide for version 5 Page

Watch Your Garden Grow

Installing, upgrading and troubleshooting your CLIO system under the Windows environment.

OPERATION MANUAL. MV-410RGB Layout Editor. Version 2.1- higher

Creating a Website with Google Sites

Titan Apps. Drive (Documents)

13 Managing Devices. Your computer is an assembly of many components from different manufacturers. LESSON OBJECTIVES

Sharing Files and Whiteboards

Sanako Study 1200 USER GUIDE

TREND series H.264 DVR Central Management System Quick User Guide

itunes 4.2 User Guide for Windows Apple Computer, Inc.

Getting Started. Sign in and get started. If you re already logged on to your organization s network, sign in by starting Lync.

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 Abstract 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 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 Framesize: 256

OpenStax-CNX module: m13035 4 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 as shown in Figure 4. Notice on the LabVIEW DSP Module Status Monitor window comes up and

OpenStax-CNX module: m13035 7 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?