Stuck creating a 1KHz Carrier wave in Simulink

6 views (last 30 days)
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!

Accepted Answer

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

More Answers (1)

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

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!