Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
What is Developer Zone?
United States

Document TypeTutorial
NI Supported: Yes
Publish Date: Dec 13, 2010


Feedback


Yes No

Related Categories

Industry

Application Type

Technology

Related Links - Developer Zone

Related Links -Products and Services

Take Your Second Measurement, Build an Audio Equalizer Using NI myDAQ and LabVIEW

0 Ratings | 0.00 out of 5
Read in  |  Print |  PDF

Overview

This document walks you through creating an NI myDAQ audio equalizer. Use the AUDIO IN jack on the NI myDAQ to acquire a stereo audio signal from an iPod or another audio player, alter the signal in NI LabVIEW software, and then output the signal to the AUDIO OUT jack on the NI myDAQ.

Table of Contents

  1. Prepare to Take Your Measurement
  2. Audio Equalizer VI
  3. Additional Resources

Prepare to Take Your Measurement

Before beginning, make sure your software is installed and NI myDAQ hardware is configured. If you have not completed this yet, visit Setting Up Your NI myDAQ

For this tutorial, you need your NI myDAQ with USB cable and audio cable, an iPod or another audio source, and powered speakers.


Figure 1. NI myDAQ AUDIO OUT and AUDIO IN Jacks


If you haven't already done so, connect your NI myDAQ to your computer using the USB cable. Next, use the audio cable to connect the output of the iPod or audio source to the AUDIO IN jack on the NI myDAQ. Then connect the speakers to the AUDIO OUT jack on the myDAQ.

Download the attached NI myDAQ Equalizer.vi.

Audio Equalizer VI

Open the NI myDAQ Equalizer VI in LabVIEW.


Figure 2. NI myDAQ Equalizer VI Front Panel

You can change the effect on the audio signal by sliding the volume and level sliders on the front panel.


Figure 3. NI myDAQ Equalizer VI Block Diagram

As you can see in the block diagram in Figure 3, a DAQ Assistant VI is used to acquire the audio signal from the left and right audio channels on the NI myDAQ. After the signal is acquired, it is passed to three Filter Express VIs that separate the audio channels into bass, midtone, and treble waveforms. After the signal is split up, the three audio components are multiplied by the corresponding controls on the front panel. The signals are then added together and multiplied by the volume control on the front panel. Finally, a second DAQ Assistant Express VI is used to output the final left and right audio streams to the AUDIO OUT jack.

Press Play on the iPod or another audio source. Then press the Run button in LabVIEW to run the NI myDAQ Equalizer VI. Move the sliders on the front panel to listen to the audio change.

Downloads

mydaq_equalizer.vi

0 Ratings | 0.00 out of 5
Read in  |  Print |  PDF

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).