You can prepare, configure, and run a model on your Arduino® hardware.
Before starting this procedure:
Connect your Arduino hardware to the host computer using a USB cable.
Create or open a Simulink® model.
To prepare and run the model:
Use File > Save As to create a working copy of your model. Keep the original model as a backup copy.
In your model, select Tools > Run on Target Hardware > Prepare to Run. This action changes the model Configuration Parameters.
When the Run on Target Hardware pane opens, use the Target hardware parameter to the specific board you are using.
Click the Deploy to Hardware button.
This action automatically downloads and runs your model on the board.