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?
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MATLAB System block 'SIP_KA/PWM6' error occurred when invoking 'validateInputsImpl' method of 'codertarget.arduinobase.internal.arduino_PWMOutput'. The error was thrown from ' 'C:\ProgramData\MATLAB\SupportPackages\R2020a\toolbox\target\shared\devicedrivers\+matlabshared\+devicedrivers\+blocks\PWM.p' at line 0'.
Caused by:
- Expected Duty Cycle to be a scalar.
0 Commenti
Risposte (1)
Arun Kumar
il 6 Set 2023
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 Commenti
Vedere anche
Categorie
Scopri di più su Arduino Hardware in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!