How to run Arduino in Simulink under normal mode with Simulink IO enabled?

조회 수: 1 (최근 30일)
Chengshi  Wang
Chengshi Wang 2018년 5월 23일
댓글: Chengshi Wang 2018년 6월 8일
Hi, I am using Arduino support package for Simulink with Arduino Mega board and a I2C sensor. I have successfully made connection and read data from the sensor using the external mode.
But when I switch to Normal mode (so that the simulation can run faster) with the Simulink IO enabled, the file was compiled and running, but all the data coming out of the I2C read block is zero. Can someone help me with it?
  댓글 수: 2
Trevor Rappold
Trevor Rappold 2018년 6월 8일
Hello Chengshi, I am having the very same problem with the Mega2560 board and would like to know if you ever found a solution?
Chengshi  Wang
Chengshi Wang 2018년 6월 8일
Hi Trevor,
I ended up using another I2C sensor and it worked under normal mode. Seems like some sensors are not compatible with Simulink under normal mode.
Chengshi

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

답변 (0개)

카테고리

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

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by