Serial port in MATLAB preferences
COM port number of the USB Serial Port showing in your host computer
Since R2022b
Model Configuration Pane: Hardware Implementation / Simulink or Embedded Coder Hardware Support Package / Hardware board settings / Target hardware resources / Connectivity
Description
COM port number of the USB Serial Port showing in your host computer. To find the CPM port, browse to Device Manager > Ports (COM & LPT).
Dependencies
To enable this parameter, set Connectivity interface parameter to
Serial (ASCLIN0), Serial
(ASCLIN1), Serial (ASCLIN2), ... ,
Serial (ASCLIN26), or Serial
(ASCLIN27).
Settings
<empty> (default)After connecting the hardware board, click Refresh button to view the available COM port options for the PIL simulation.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | No impact |
| Traceability | No impact |
| Efficiency | No impact |
| Safety precaution | No impact |
Programmatic Use
| No programmatic use is available. |
Version History
Introduced in R2022b