Run Model on Android Devices

This example shows how to configure and run a model on Android™ device.

  1. Connect the Android device to your host computer using a USB cable.

  2. Connect the Android device to the same WiFi network used by your host computer.

  3. Create a new Simulink® model or open an existing model.

  4. In the Modeling tab of the toolstrip, select Model Settings.

  5. In the Configuration Parameter dialog box, click Hardware Implementation. Set Hardware board to Android Device. Then, click OK.

    Tip

    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.

    Note

    If you do not see your Android device type in the Hardware board parameter list, follow these instructions to Install Support for Android Devices.

  6. 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.

See Also

|