This example shows how to configure and run a model on Android™ device.
Connect the Android device to your host computer using a USB cable.
Connect the Android device to the same WiFi network used by your host computer.
Create a new Simulink® model or open an existing model.
In the Modeling tab of the toolstrip, select Model Settings.
In the Configuration Parameter dialog box, click Hardware
Implementation. Set Hardware board to
Android Device. Then, click
This step overwrites the Model Configuration Parameters. To preserve the configuration of an existing model, select File > Save As to create a working copy of the model that you can configure.
If you do not see your Android device type in the Hardware board parameter list, follow these instructions to Install Support for Android Devices.
In the Hardware tab of the toolstrip, click Build, Deploy & Start.
This creates an app with the same name as the model. Simulink software then uses the USB cable to load and run the model on the Android device.
When you redeploy the model to the Android device, it stops and replaces the previous instance of the model.
To stop a model running on your Android device:
Close the app containing the model on your Android device.
If you are using external mode, click the Stop button on the Hardware tab of the toolstrip.