To produce a chopped sine wave in Simulink, you can use a "Pulse Generator" block to generate a square wave with a frequency that is some multiple of the desired sine wave frequency. Then, use a "Sine Wave" block to generate a sine wave with the desired frequency and amplitude. Finally, use a "Product" block to multiply the sine wave with the square wave.
Here is a step-by-step guide:
Open a new Simulink model.
Add a "Pulse Generator" block by typing "pulse" in the Simulink Library Browser search bar and dragging the block into the model.
Double-click the "Pulse Generator" block and set the "Frequency" parameter to the desired multiple of the sine wave frequency. For example, if you want a sine wave with a frequency of 1 kHz, you could use a pulse with a frequency of 10 kHz (which will produce 10 cycles of the sine wave per pulse).
Add a "Sine Wave" block by typing "sine" in the Simulink Library Browser search bar and dragging the block into the model.
Connect the output of the "Pulse Generator" block to the "Sine Wave" block.
Double-click the "Sine Wave" block and set the "Frequency" parameter to the desired frequency of the sine wave.
Add a "Product" block by typing "product" in the Simulink Library Browser search bar and dragging the block into the model.
Connect the output of the "Pulse Generator" block to one input of the "Product" block.
Connect the output of the "Sine Wave" block to the other input of the "Product" block.
Add a "Scope" block by typing "scope" in the Simulink Library Browser search bar and dragging the block into the model.
Connect the output of the "Product" block to the "Scope" block.
Run the simulation and you should see a chopped sine wave at the output of the "Scope" block.
Here is an example model screenshot:
gistlibby LogSnag