How to run Arduino in Simulink under normal mode with Simulink IO enabled?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190792/image.png)
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?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/190793/image.png)
2 comentarios
Trevor Rappold
el 8 de Jun. de 2018
Hello Chengshi, I am having the very same problem with the Mega2560 board and would like to know if you ever found a solution?
Respuestas (0)
Ver también
Categorías
Más información sobre Arduino 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!