フィルターのクリア

how to build DC wave which have a amplitude of 0 to 360 and frequency 50HZ

2 ビュー (過去 30 日間)
Mudasir Ahmed
Mudasir Ahmed 2016 年 1 月 15 日
回答済み: Tim McBrayer 2016 年 1 月 15 日
hi
i want to generate the waveform which has a amplitude from 0 to 360 and have frequency 50 Hz in simulink. i built the circuit and also achieve the same waveform, but unfortunately when i convert it into HDL language it gives error in "clock" block. so i need to change the logic in which this block not involve and get the same response, kindly help me how i get this waveform by another logic.
with best regards
mudasir ahmed

採用された回答

Tim McBrayer
Tim McBrayer 2016 年 1 月 15 日
Your waveform looks like the output of a counter, counting from 0 to 360 repeatedly. You can use the HDL Counter block, configured appropriately, to create the waveform you need. You'll need 9 bits for the counter width. Specify your initial value (0), step value (whatever time precision you need), and count-to value (360), the sample time (depends on the number of steps you configure), and you will be ready to generate HDL.

その他の回答 (0 件)

コミュニティ

カテゴリ

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

製品

Community Treasure Hunt

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

Start Hunting!

Translated by