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 1). Set the number of samples to 100 and uncheck the automatic box. Select 1000 samples per second. Set the frequency to 10Hz.
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 10)
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 0.05sec. Same as in Lab 1)
Generate another signal by modifying the original input signal using the arithmetic expression (2**sin2t).(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 "X1" and input "2**x1**x1") 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 1, 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 100. What happens to the mean of Signal A? Why? (Tips: Set compression factor to 50,25 and check the results.)
 Introduce a while loop (Right click on the Block diagram and

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!