Host Serial Setup
R2026bConfigure communication ports used by Host Serial Receive and Host Serial Transmit blocks
Libraries:
Motor Control Blockset /
Protection and Diagnostics
Description
The Host Serial Setup block is a standalone block that standardizes the serial communication (COM) port settings used by the Host Serial Receive and Host Serial Transmit blocks.
Setting the COM port configurations globally by using the Host Serial Setup block avoids conflicts. For example, the Host Serial Transmit block cannot use a COM1 port with settings different than those on the COM1 port of the Host Serial Receive block. You need to set the port configurations only once for each COM port.
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"mcblib/Protection and Diagnostics/Host Serial Setup"
Example: add_block("mcblib/Protection and Diagnostics/Host Serial Setup","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced in R2020a