Documentation Center

  • Trials
  • Product Updates

Contents

Configure Host COM Port Manually

Simulink® software automatically detects the COM port settings of the USB connection between your host computer and the Arduino® hardware. Optionally, you can also configure these settings manually.

Configure COM Port on Windows

To configure the COM port settings manually on Windows®:

  1. Click the Tools menu in the model, and select Run on Target Hardware > Options.

  2. In the Run on Target Hardware pane, change the Set host COM port parameter to Manually and leave the Configuration Parameters dialog open.

  3. Open Devices and Printers in Windows.

  4. Double-click Arduino Uno or Arduino Mega 2560 or Arduino Nano or Arduino Due device.

  5. In the device properties dialog, click the Hardware tab, and then click the Properties button.

  6. Click the Port Settings tab.

    For example, the following image shows an Arduino device in Devices and Printers, the Hardware tab, and the Port Settings tab.

  7. In the Configuration Parameters dialog window, update COM port number and Serial 0 baud rate to match the Arduino device in Windows.

  8. Click OK and save the model.

Configure COM Port on Mac OS X

To configure the COM port settings manually on Mac OS X:

  1. Click the Tools menu in the model, and select Run on Target Hardware > Options.

  2. In the Run on Target Hardware pane, change the Set host COM port parameter to Manually and leave the Configuration Parameters dialog open.

  3. On Mac OS X, open a terminal window and enter the following command:

    ls /dev/cu.usb*

    This command lists the path and file name of the USB device connected to the Arduino hardware. For example:

    /dev/cu.usbmodemfa131
  4. In Configuration Parameters, update COM port with the path and file name of the USB device. For example, enter /dev/cu.usbmodemfa131.

  5. Click OK and save the model.

Was this topic helpful?