Solution for Logging Data on an SD Card through Arduino Nano IoT Hardware?

조회 수: 1 (최근 30일)
fus
fus 2020년 11월 8일
댓글: Syed Rizvi 2022년 2월 18일
I wanted to check in and see if I can get some enlightenment on how SD Card logging through MAT files works.
I was trying to follow the guide posted here. However, it says "Arduino MKR 1000 or Arduino Due target hardware.", where I have a Nano 33 IoT with an SD card adapter. It's possible this feature is simply not compatible with my hardware, but there is so little out there (actually absolutely nothing) related to this adapter and Simulink that I simply don't know.
When I try to enable MAT file logging, the simulation time freezes at T = 0.000s. If I disable MAT file logging, it works fine. Of course, no log file is created either way. If I load up data logging on the Arduino IDE, it creates log files so I know the hardware works. Might you have any advice on how I might learn to find a solution that works through SImulink?
  댓글 수: 3
fus
fus 2022년 2월 15일
I never found a solution to this method, but instead went an alternate route of building an S function that uses SD library to write data structures to a .bin file.
Syed Rizvi
Syed Rizvi 2022년 2월 18일
Do you still happen to have the code/s-function....would appreciate if you could share it? No example is working out for me.....I've gone to lengths in checking pin and hardware board definitions but all in vain....Through Arduino IDE the example codes just work flawlessly.....so hardware checks out....

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by