Error while obtaining sizes from MEX S-function 'arduinodigitaloutput_sfcn' in 'arduino_gettingstarted/Digital Output/Digital Output'.
Show older comments
Hi
How can I fix the following error(ref screenshot) . I am using Matlab R2018a, Simulink Support Package for Arduino Hardware version 18.1.2.0

2 Comments
Asha Dharan
on 1 Jun 2018
Hritik Jaiswal
on 14 Sep 2018
same here I am also unable to find the solution to this question
Answers (1)
Pradeep KS
on 4 Jun 2018
0 votes
In 18a, the Simulink Arduino support package is not using "arduinodigitaloutput_sfcn" mex file. I think there are files from older versions which are on the MATLAB path. Could you please run the below command and check from where the "arduinodigitaloutput_sfcn" mex file is getting loaded.
>> which arduinodigitaloutput_sfcn
Please post the output of the above command for further help.
6 Comments
Asha Dharan
on 4 Jun 2018
Madhu Govindarajan
on 29 Jun 2018
Can you also check the output of >> which -all arduino_gettingstarted? If there are more than one here, please remove all of them from your MATLAB path except the one that looks like this -
C:\ProgramData\MATLAB\SupportPackages\R2018a\toolbox\target\supportpackages\arduinotarget\arduinotargetdemos\arduino_gettingstarted.slx
Daniel Chizhik
on 23 Jul 2018
I am also having this problem with running the Arduino packages on 18a. I tried the first suggestion and I'm getting the same result as Asha. I also checked the outputs of >>which-all arduino_gettingstarted and there was only one.
Dinesh Sequeira
on 31 Jul 2018
I get a similar error when using TI "MSP430G2553_gettingstarted" with "Embedded Coder Support Package for Energia" and using MATLAB R2018a In touch with support but no solution so far. Case #03179769 ref:_00Di0Ha1u._5000Z12cHx1:ref
Jayson Peters
on 7 Mar 2020
Doesn't work with 2019b either.... :(
pls help
Varun-Chandra Reddy
on 29 Nov 2022
I got the same error on MSP430G2 launch pad. Werid thing is, I actually see the file. Its exactly where it says it is. Not sure why it complains that it can't find it. Here is the screenshot:
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!