Main Content

Legacy Serial Setup

Set up baseboard serial communications

Since R2020b

  • Legacy Serial Setup block

Libraries:
Simulink Real-Time / RS232 / Mainboard

Description

The Legacy Serial Setup block sets up baseboard serial communications on the Speedgoat® target computer.

For more information, see RS-232 Serial Communication and RS-232 Legacy Drivers.

Examples

Parameters

expand all

Select the RS232 serial port for communications. If using USB-to-serial adapters, the target computer detects these adapters as serusb1, serusb2, and so on in the order that the adapters are connected to the serial devices. The order of port assignment is retained through the power cycle of the target computer or serial device if there is no change in the connections to the ports.

Programmatic Use

port

Use this value to select the serial port baud rate.

Programmatic Use

baud

Use this value to select the number of serial port data bits.

Programmatic Use

width

Use this value to select the number of serial port stop bits.

Programmatic Use

nstop

Use this value to select serial port parity.

Programmatic Use

parity

Use this value to select the serial port RTX/CTS mode.

Programmatic Use

ctsmode

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2020b

expand all