Question: Introduce a while loop ( Right click on the Block diagram and choose Structure, While loop ) . Introduce a button for stopping the while
Introduce a while loop Right click on the Block diagram and choose "Structure", "While loop"
Introduce a button for stopping the while loop if needed Right click on the red button in the lower right corner and select create control
Generate and display a signal sine wave Call it Signal A Same as in Lab Set the number of samples to and uncheck the automatic box. Select samples per second. Set the frequency to
Introduce a sample compression block Right click on the Block diagram, find search. Click on "search" and type "compression" to find the block "Sample Compression". and select to display the mean output of the input signal. use reduction factor of
Introduce a switch and connect it to the Enable port of the sample compression to be able to turn on and off the sample compression block. Right click on front panel and choose "Boolean", "Vertical toggle switch" or another switch. Go back to block diagram and draw a line between the switch and "Enable" of the compression block
Send the mean of Signal A to an Express table. Right click on front panel and choose "List, Table & Tree", Ex Table"
Introduce 'time delay' to control the display rate of output. Use delay as Same as in Lab
Generate another signal by modifying the original input signal using the arithmetic expression Right click on the Block diagram, find search. Click on "search" and type "expression" to find the block "Formula Arithmetic & Comparison Then define the original sine wave as X and input Display this new signal, calling it Signal B on your graph along with Signal A and the mean of Signal A Same as in Lab remember to turn the switch on How does the frequency of signal A differ from the signal B Why?
Change the sample compression factor to What happens to the mean of Signal A Why? Tips: Set compression factor to and check the results.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
