Main Content

Legacy Serial Write

Write output data for baseboard serial communications

Since R2020b

  • Legacy Serial Write block

Simulink Real-Time / RS232 / Mainboard


The Legacy Serial Write block writes output data for baseboard serial communications.



expand all

The Input port contains the data to write for the serial port.


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


Use this value to select the output data type.

Programmatic Use


Use this value to select the sample time in seconds.

Programmatic Use


Extended Capabilities

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

Version History

Introduced in R2020b

expand all