Simulink Arduino SD Card .mat logging parameter error
2 次查看(过去 30 天)
显示 更早的评论
I have the Arduino Mega 2560 with an Ethernet 2 Shield. My end goal is to save sensor input data which the arduino reads, on the SD card. To test out the SD card, I want to start simple with following model:
Repeating sequence stair [1 0] --> Pin 13 (LED) and ToWorkspace
I want to save the current value outputted by the repeating sequence stair to a .mat file on my SD card.
I get following error when I try to build, deploy & start the model:
"In 'arduino:build:MATFileLoggingNotSuppoted', parameter {0} must be a real scalar."
I followed the instructions for setting up logging in Matlab. I have "MAT-file logging" enabled under the Configuration Parameters/Code Generation/Interface/Advanced parameters. and MAT-file variable name modifier set as "_rt".
Does anybody know what exactly parameter {0} is? and how do I fix this error?
0 个评论
回答(1 个)
Arun Kumar
2021-10-9
Hi,
This is the error: MAT-file logging supported only for Arduino Due, Arduino MKR1000, Arduino MKR WiFi 1010, Arduino MKRZero and Arduino Nano 33 IoT boards. To disable MAT-file logging, select 'Configuration Parameters > Code Generation > Interface > Advanced parameters' and clear the 'MAT-file logging' option.
For some reason, there is some issue with displaying the error. Mat file logging is not supported on arduino mega.
Thanks, Arun
1 个评论
Syed Rizvi
2022-2-14
Is there any tutorial on logging files on a MKR Zero arduino? I've tried the said tutorial for MAT-File logging and it doesn't log anything!!!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Run on Target Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!