Simulink with Arduino: File May be Corrupt
1 次查看(过去 30 天)
显示 更早的评论
I just started with Simulink with the below block diagram.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156292/image.png)
Here I am using Arduino Mega 2560 trying to light up a LED and the below error shows up.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/156293/image.png)
What can I do with this, this is my first try.
0 个评论
回答(1 个)
Farouk Moukaddem
2016-9-19
Hi Kerk,
This error message could be due to the following reasons:
1) Writing a matrix with more than 10^8 elements. Mat files of the v4 format have a limit of 10^8 elements for matrices. Instead, try saving these matrices in the v5 format.
2) If you are using a third party tool to generate these files, dimensions of the variables could be specified incorrectly in the binary files.
To workaround this issue, try adding your folder under your SET PATH and typing the path and the fileName when using load or save command.
Thanks,
Farouk
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!