Simulink Arduino SD Card .mat logging parameter error

조회 수: 2 (최근 30일)
mashallah sheesh
mashallah sheesh 2021년 9월 23일
댓글: Syed Rizvi 2022년 2월 14일
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?

답변 (1개)

Arun Kumar
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
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 CenterFile Exchange에서 Run on Target Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by