"Expected u to be a scalar" Error
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens

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 commentaires
Walter Roberson
le 10 Août 2023
Modifié(e) : Walter Roberson
le 10 Août 2023
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.
Réponses (0)
Voir également
Catégories
En savoir plus sur Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!