0
0
Simulinkdata~10 mins

Why Simulink streamlines DSP prototyping - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a DSP model block in Simulink.

Simulink
model = [1]('dsp_model');
Drag options to blanks, or click blank then click option'
Asimulink
Bnew_system
Cadd_block
Dopen_system
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'simulink' which opens the Simulink environment but does not create a model.
Using 'open_system' which opens an existing model.
Using 'add_block' which adds blocks to a model but does not create one.
2fill in blank
medium

Complete the code to add a DSP block to the model.

Simulink
add_block('dsp_lib/Filters/[1]', 'dsp_model/Filter');
Drag options to blanks, or click blank then click option'
AScope
BGain
CLowpass Filter
DFFT
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'Gain' which amplifies signals but is not a filter.
Choosing 'FFT' which performs frequency analysis but is not a filter.
Choosing 'Scope' which is for visualization.
3fill in blank
hard

Fix the error in the code to connect blocks in the model.

Simulink
add_line('dsp_model', 'Input/1', [1]);
Drag options to blanks, or click blank then click option'
A'Filter/1'
B'Gain/1'
C'Output/1'
D'Scope/1'
Attempts:
3 left
💡 Hint
Common Mistakes
Connecting input directly to output or scope blocks.
Connecting input to gain block which is not added here.
4fill in blank
hard

Fill both blanks to set simulation parameters for DSP prototyping.

Simulink
set_param('dsp_model', 'StopTime', [1], 'Solver', [2]);
Drag options to blanks, or click blank then click option'
A'10'
B'0.1'
C'FixedStepDiscrete'
D'VariableStepAuto'
Attempts:
3 left
💡 Hint
Common Mistakes
Using variable step solver which is less common for DSP prototyping.
Setting stop time too small or as a decimal string.
5fill in blank
hard

Fill all three blanks to create a dictionary of DSP block parameters.

Simulink
params = [1]: [2] for [3] in blocks if blocks[[3]] > 0
Drag options to blanks, or click blank then click option'
Ablock
Bblocks[block]
Dblocks
Attempts:
3 left
💡 Hint
Common Mistakes
Using the dictionary name as key or value instead of the variable.
Not filtering blocks correctly.