Example Code

myGraphic EQ

Code and Documents

Attachment

Download All

myGraphic EQ Front Panel

Front panel myEQ.PNG

Introduction

This is a 10 way graphic equaliser with preset options.  The equaliser can be enabled or disabled, the left and right channels can be monitored and have their levels changed independently of each other.  The input and output power spectrums are displayed on graphical indicators so the changes the graphical equaliser makes can be seen.  The program uses the producer consumer loop design template and incorporates DAQ assistant express VI’s to acquire the sound from the myDAQ’s audio input jack socket and output it on the audio output jack socket.  The filter subVI contains Filter express VI’s all set to different frequencies,  this enables the individual frequency bands to be attenuated or amplified. 

Block Diagram.PNG

Additional Notes

To use just modify the DAQ assistant’s for you myDAQ device. Then run and VI and change the preset options bass boost, treble boost, bass and treble boost, flat and custom.  In custom the user can move the EQ’s levels.  The EQ button must be enabled for the EQ to have an effect on the sound otherwise the input is passed straight through and not be modified other than the volume levels.

Matt Surridge

National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors