Support for triangle wave generator in hdllib

1 回表示 (過去 30 日間)
Aditya Govardhan
Aditya Govardhan 2016 年 10 月 29 日
回答済み: Tim McBrayer 2016 年 11 月 2 日
I am currently designing svpwm based motor control system and accordingly I need a triangle wave generator. Though the normal Simulink library has one I can't find one in the hdlsupported library (the one that pops up when hdllib command is entered). I tried designing my own but it is not as per my expectations. I wanted to know if something like that is available in hdlsupported or can I get support from the MathWorks for the same, since triangle wave generator is already available in Simulink library.
I am using MATLAB R2013a.

回答 (1 件)

Tim McBrayer
Tim McBrayer 2016 年 11 月 2 日
A simple counter, suitably configured for your needs (i.e. the number of steps, output data type, and sample rate), will generate a step-wise triangle wave.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by