Simulink Arduino SD Card .mat logging parameter error

2 visualizaciones (últimos 30 días)
mashallah sheesh
mashallah sheesh el 23 de Sept. de 2021
Comentada: Syed Rizvi el 14 de Feb. de 2022
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?

Respuestas (1)

Arun Kumar
Arun Kumar el 9 de Oct. de 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 comentario
Syed Rizvi
Syed Rizvi el 14 de Feb. de 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!!!

Iniciar sesión para comentar.

Categorías

Más información sobre Run on Target Hardware en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by