- https://www.mathworks.com/hardware-support/arduino-simulink.html
- https://www.mathworks.com/help/supportpkg/arduino/ug/create-a-digital-write-block.html
- https://www.mathworks.com/help/supportpkg/arduino/ref/analoginput.html
- https://www.mathworks.com/help/supportpkg/arduinoio/ug/configure-setup-for-arduino-hardware.html
- https://www.mathworks.com/help/supportpkg/arduino/ug/remotely-monitoring-and-controlling-an-application-on-hardware.html
Im getting an error "Invalid value for a mask parameter"
8 次查看(过去 30 天)
显示 更早的评论
Those are my inputs ,not gain included (I set
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1164183/image.png)
Im trying to run this simple simulation for RC circuit wih sample time 0.2 , I set double values for gain ,I Put adioe in my arduino UNO
..................................................................................................................................................................................................................................
I Use those support packages , both worked for me like few weeks before in a project
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1164188/image.png)
This one says "no longer supported" ,but few week before I tried and was all fine .
And this one :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1164193/image.png)
..................................................................................................................................................................................................................................
Im getting this error :
Error evaluating registered method 'CheckParameters' of MATLAB S-Function 'msfun_arduino_digitalwrite' in 'Arduino_RC_A/Arduino
Digital Write'. The following is the MATLAB call stack (file names and line numbers) that produced this error:
['C:\Users\djand\Documents\MATLAB\Add-Ons\Collections\Legacy MATLAB and Simulink Support for
Arduino\code\simulink\msfun_arduino_digitalwrite.m'] [56]
Caused by:
Error using msfun_arduino_digitalwrite/CheckPrms (line 56)
Invalid value for a mask parameter
Error evaluating registered method 'CheckParameters' of MATLAB S-Function 'msfun_arduino_digitalwrite' in 'Arduino_RC_A/Arduino
Digital Write'. The following is the MATLAB call stack (file names and line numbers) that produced this error:
['C:\Users\djand\Documents\MATLAB\Add-Ons\Collections\Legacy MATLAB and Simulink Support for
Arduino\code\simulink\msfun_arduino_digitalwrite.m'] [56]
Caused by:
Error using msfun_arduino_digitalwrite/CheckPrms (line 56)
Invalid value for a mask parameter
..................................................................................................................................................................................................................................
And this error while im trying to change values ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1164198/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1164198/image.png)
0 个评论
回答(1 个)
Yukta Maurya
2022-12-9
As per my understanding, it might be possible that the workflow you are following relies on a legacy version of Arduino support, and as such, the workflow you are attempting may not be supported for R2022a. This is addressed in the following MathWorks Answers post, specifically the comment from April 2018.
The error you are facing may be a result of the s-function files not being appropriately compiled for this newest release. Please direct your line of questioning related to blocks from this support package to the file author.
I would recommend that you update this model to use release-appropriate support for Arduino, I have included below a link to the support package as well as some of the blocks that could be used in place of those from the legacy code.
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!