Stuck creating a 1KHz Carrier wave in Simulink

23 visualizaciones (últimos 30 días)
adam
adam el 7 de En. de 2013
First off sorry if this is in the wrong place
I need to generate a 1KHz triangular carrier wave that will vary between 1 and -1. I know I need to use the repeating sequence block in simulink, however no matter what values I enter into the block parameters my output doesnt seem right. I should be generating a PWM signal at intervals of 0.001s but my output is only starting at 8s with a second pulse at 9s.
I must be missing something obvious!

Respuesta aceptada

Ryan G
Ryan G el 7 de En. de 2013
Try this in the repeating sequence:
[0 1/2000 1/1000]
[-1 1 -1]

Más respuestas (1)

adam
adam el 7 de En. de 2013
Thanks, that seems to have things working now, at least my output looks the same as the reference one! Now to create a subsystem for simulating a load.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by