How fix the error "Error evaluating registered method 'check parameters' of Matlab S-function 'msfun_ard​uino_analo​gread' in 'untitled/Arduino Analog Read" with Arduino IO on Arduino UNO with MATLAB 2014a?

I am trying to read some ports with ArduinoIO through Arduino UNO on MatLab 2014a, I test the library with other program and it works, but I just put the Arduino IO Setup, Real-Time Pacer and Arduino Analog Read blocks. When I want to change the port on Arduino Analog Read block this error apperars:
"Error evaluating registered method 'check parameters' of Matlab S-function 'msfun_arduino_analogread' in 'untitled/Arduino Analog Read'. The following is the MATLAB call stack (file names and line numbers) that produced this error: ['C:\User\user\Documents\MATLAB\ArduinoIO\simulink\msfun_arduino_analogread.m'] [55] --> Invalid value for a mask parameter"
Can anybody help me with this error, I thought if I downloaded the file "msfun_arduino_analogread" shared here and update it on my library that could fix the problem but that doesn't work

7 件のコメント

I tried using the same block with MatLab 2013B but I got the same error.
Syed Amer
Syed Amer 2017 年 2 月 7 日
I got the same problem with R2016b can anyone help with this issue
I finally found the problem, you have to run matlab by doing "Run as Administrator" and then reinstall ArduinoIO.
Markus Grund
Markus Grund 2017 年 11 月 7 日
@Eric reinstall the whole hardware supporr package?
I got the same problem but I am using C2000, do you have any idea about it?
i am using the Matlab 2018b and have the same problem......can anybody helpme
I am also using Matlab 2018b. It displays the same problem. The error may be due to arduino IO library compatible with other arduino boards except arduino uno eg. Arduino mega 2560.

サインインしてコメントする。

回答 (2 件)

JACKO
JACKO 2020 年 3 月 22 日
Run Command
delete(instrfind({'Port'},{'COM5'}))

1 件のコメント

John Lovera
John Lovera 2020 年 8 月 12 日
Excuse me, where does the code run, in the codebase or in the matlab bin?

サインインしてコメントする。

Sanket Chaudhary
Sanket Chaudhary 2021 年 7 月 30 日
hello to solve this error u need to preprogram the ardiuno with adioes package given in io library

カテゴリ

ヘルプ センター および File ExchangeMATLAB Support Package for Arduino Hardware についてさらに検索

質問済み:

2016 年 10 月 29 日

回答済み:

2021 年 7 月 30 日

Community Treasure Hunt

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

Start Hunting!

Translated by