Im getting an error "Invalid value for a mask parameter"

14 visualizzazioni (ultimi 30 giorni)
--------> Link project
Those are my inputs ,not gain included (I set
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
This one says "no longer supported" ,but few week before I tried and was all fine .
And this one :
..................................................................................................................................................................................................................................
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

Risposte (1)

Yukta Maurya
Yukta Maurya il 9 Dic 2022
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.

Categorie

Scopri di più su Arduino Hardware in Help Center e File Exchange

Prodotti


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by