Stuck creating a 1KHz Carrier wave in Simulink

23 ビュー (過去 30 日間)
adam
adam 2013 年 1 月 7 日
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!

採用された回答

Ryan G
Ryan G 2013 年 1 月 7 日
Try this in the repeating sequence:
[0 1/2000 1/1000]
[-1 1 -1]

その他の回答 (1 件)

adam
adam 2013 年 1 月 7 日
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.

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by