Stuck creating a 1KHz Carrier wave in Simulink

21 Ansichten (letzte 30 Tage)
adam
adam am 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!

Akzeptierte Antwort

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

Weitere Antworten (1)

adam
adam am 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.

Kategorien

Mehr zu Simulink finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by