I receive the following error message when trying to open the Arduino Engineering Kit library in Simulink
1 view (last 30 days)
Show older comments
Nicholas Pfaff
on 27 Sep 2018
Commented: Nicholas Pfaff
on 3 Oct 2018
Warning: An error occurred while parsing
"C:\Users\konta\OneDrive\Dokumente\MATLAB\Add-Ons\Toolboxes\Arduino_Engineering_Kit_Hardware_Support_18b\simulink\blocks\slblocks.m".
Error Message: Invalid arguments in the message cell. They should be of type 'character vector',
'float' or 'integer'.
Is there anything that I can do against this error? I tried reinstalling the Arduino Engineering Kit Hardware Support package, which did not help.
3 Comments
Accepted Answer
Madhu Govindarajan
on 2 Oct 2018
Thanks Nicholas for catching this bug. I did the following and fixed the errors -
1) remove the arduinosensorlib reference in line 8. The following should be changed from 'blkStruct.OpenFcn = {'arduinosensorlib','mkrmotorcarrierlib'};' to 'blkStruct.OpenFcn = {'mkrmotorcarrierlib'};'
2) add the following line of code in line # 15
blkStruct.Browser = Browser;
After this I closed and reopened MATLAB and the errors went away. I will work with internal teams to get this updated in the File Exchange as well.
Madhu
More Answers (0)
See Also
Categories
Find more on Modeling 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!