Stuck creating a 1KHz Carrier wave in Simulink

21 vues (au cours des 30 derniers jours)
adam
adam le 7 Jan 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!

Réponse acceptée

Ryan G
Ryan G le 7 Jan 2013
Try this in the repeating sequence:
[0 1/2000 1/1000]
[-1 1 -1]

Plus de réponses (1)

adam
adam le 7 Jan 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.

Catégories

En savoir plus sur Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by