0
0
Simulinkdata~30 mins

DSP System Toolbox blocks in Simulink - Mini Project: Build & Apply

Choose your learning style9 modes available
DSP System Toolbox Blocks in Simulink
📖 Scenario: You are working on a simple audio processing system using Simulink. You want to use DSP System Toolbox blocks to create a system that filters an audio signal and then measures its power.
🎯 Goal: Build a Simulink model using DSP System Toolbox blocks to filter an input signal with a lowpass filter and then measure the power of the filtered signal.
📋 What You'll Learn
Create a Simulink model named audio_filter_power
Add a DSP System Toolbox Lowpass Filter block with cutoff frequency 1000 Hz
Add a DSP System Toolbox Power Measurement block
Connect the blocks correctly to process the input signal
Display the output power measurement
💡 Why This Matters
🌍 Real World
DSP System Toolbox blocks in Simulink are used to design and simulate digital signal processing systems such as audio filters, communication systems, and sensor data processing.
💼 Career
Understanding how to use DSP System Toolbox blocks is important for engineers working in signal processing, embedded systems, and communications to prototype and test algorithms efficiently.
Progress0 / 4 steps
1
Create the Simulink model and add input signal
Create a new Simulink model named audio_filter_power. Add a Sine Wave block from the Simulink Sources library. Set the frequency to 500 Hz and the sample time to 1/8000. Connect the output of the Sine Wave block to a Scope block to visualize the signal.
Simulink
Hint

Use new_system to create the model. Use add_block to add blocks. Set the frequency and sample time properties for the Sine Wave block. Connect blocks with add_line.

2
Add DSP System Toolbox Lowpass Filter block
Add a DSP System Toolbox Lowpass Filter block to the model. Set its cutoff frequency to 1000 Hz. Connect the output of the Sine Wave block to the input of the Lowpass Filter block.
Simulink
Hint

Use the DSP System Toolbox library path dspmlti4/Filters/Lowpass Filter to add the Lowpass Filter block. Use set_param to set the cutoff frequency.

3
Add DSP System Toolbox Power Measurement block and connect
Add a DSP System Toolbox Power Measurement block to the model. Connect the output of the Lowpass Filter block to the input of the Power Measurement block. Then connect the output of the Power Measurement block to the Scope block.
Simulink
Hint

Use the DSP System Toolbox path dspmlti4/Measurements/Power Measurement to add the Power Measurement block. Connect the blocks in the correct order.

4
Run the simulation and display the output
Run the simulation for 0.01 seconds. Open the Scope block to view the power measurement output of the filtered signal.
Simulink
Hint

Use set_param to set the stop time. Use sim to run the simulation. Use open_system to open the Scope window.