Normal mode simulation with Simulink® IO is an intermediate step in the workflow for Model-Based Design that bridges the gap between simulation and code generation by enabling Simulink to communicate with the hardware before deploying the model on the hardware. Simulink IO enables you to modify your model design and monitor the effect of the modified design using the peripheral data from the hardware in a near real-time environment. You are not required to deploy the model on the hardware to monitor the effect of the modified design, which accelerates the simulation process. This Simulink (software) and Arduino® (hardware) interaction is available in Normal mode simulation only when you enable Simulink IO.
This video will show you how to start using Simulink IO on Arduino and how to interface peripherals like Digital IO, ADC, PWM, SPI, and I2C with working demos on Arduino Mega.
MATLAB Support Package for Arduino Hardware:
Communicate with Hardware in Normal Mode Simul