"Expected u to be a scalar" Error
3 ビュー (過去 30 日間)
古いコメントを表示

So, i tried to run this Simulink code, then i got this error:
MATLAB System block 'arduino_project/LED Red' error occurred when invoking 'validateInputsImpl' method of 'codertarget.arduinobase.blocks.DigitalWrite'. The error was thrown from ' 'C:\ProgramData\MATLAB\SupportPackages\R2020b\toolbox\target\supportpackages\arduinobase\+codertarget\+arduinobase\+blocks\DigitalWrite.p' at line 0 'E:\Apps\MatLab2020b\toolbox\shared\spcuilib\slscopes\+Simulink\+scopes\+source\@WiredSource\sendSimulationCommand.m' at line 13 'E:\Apps\MatLab2020b\toolbox\shared\spcuilib\unifiedscopes\@uiservices\fevalNoBacktrace.m' at line 10 'E:\Apps\MatLab2020b\toolbox\shared\spcuilib\slscopes\+Simulink\+scopes\+source\@WiredSource\sendSimulationCommand.m' at line 13 'E:\Apps\MatLab2020b\toolbox\shared\spcuilib\slscopes\+Simulink\+scopes\+source\@PlaybackControls\slPlayPause.p' at line 0 'E:\Apps\MatLab2020b\toolbox\shared\spcuilib\slscopes\+Simulink\+scopes\+source\@PlaybackControls\PlaybackControls.p' at line 0'.
Caused by:
- Expected u to be a scalar.
Anyone know what should i do?
3 件のコメント
Walter Roberson
2023 年 8 月 10 日
編集済み: Walter Roberson
2023 年 8 月 10 日
I just noticed that the thermal sensor is compared to a value, and combined on a bus with a boolean, producing a bus with two booleans, and that bus is being sent to arduino digital output. But arduino digital output is expecting a scalar not a bus.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!