Simulink Arduino SD Card .mat logging parameter error

2 Ansichten (letzte 30 Tage)
mashallah sheesh
mashallah sheesh am 23 Sep. 2021
Kommentiert: Syed Rizvi am 14 Feb. 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?

Antworten (1)

Arun Kumar
Arun Kumar am 9 Okt. 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 Kommentar
Syed Rizvi
Syed Rizvi am 14 Feb. 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!!!

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Run on Target Hardware finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by