I want to generate a pulse with a frequency between 1KHz and 10KHz in order to move motors

6 ビュー (過去 30 日間)
Arturo Sandoval
Arturo Sandoval 2019 年 1 月 18 日
回答済み: Dombrovschi Andrei 2019 年 1 月 18 日
I am using the block "Pulse Generator" from the sources block of simulink, I would like to get 1KHz of frequency which is 0.001 of T(Period), but the period parameter doesn't accept decimal numbers but integers, so what would be the correct way to generate the PWM with that frequency, Im guessing that the sample time is involved here but I dont know how, thank you in advice!

回答 (3 件)

Bhanu Prakash Rachaputi
Bhanu Prakash Rachaputi 2019 年 1 月 18 日
you can use 1/1000 (accepted form) instead of .001.

Arturo Sandoval
Arturo Sandoval 2019 年 1 月 18 日
Let me try it and I'll tell you if I got what I wanted, thanks

Dombrovschi Andrei
Dombrovschi Andrei 2019 年 1 月 18 日
0

コミュニティ

カテゴリ

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

製品


リリース

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by