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']  --> 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