Simulink Arduino SD Card .mat logging parameter error
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponses (1)
Arun Kumar
le 9 Oct 2021
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 commentaire
Syed Rizvi
le 14 Fév 2022
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!!!
Voir également
Catégories
En savoir plus sur Run on Target Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!