Could someone provide an explanation for why I'm encountering the error message "Expected Duty Cycle to be a scalar" while trying to interface an Arduino Due with Simulink?
4 ビュー (過去 30 日間)
古いコメントを表示
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1454642/image.jpeg)
Caused by:
- Expected Duty Cycle to be a scalar.
0 件のコメント
回答 (1 件)
Arun Kumar
2023 年 9 月 6 日
The output of the mux block is is 1X4 vector which is being fed to the PWM blocks after some switch blocks. The PWM blocks accept only scalar data. Try connecting the PWM blocks to scalar data or either use demux block to split the vector signal and then connecto to PWM block.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Arduino Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!