Serial Send
Send binary data over serial port
Libraries:
Instrument Control Toolbox
Motor Control Blockset /
Protection and Diagnostics
Description
The Serial Send block configures and opens an interface to the specified serial port. The configuration and initialization occur once at the start of the model's execution. The block sends data from the model to the serial port during the model's run time. You can use multiple Serial Send blocks at a time to send data to a specific serial port.
Note
You must configure your serial port parameters using the Serial Configuration block before you specify the Serial Send block parameters.
The Serial Send block has one input port that accepts both 1-D vector and
matrix data. This block has no output ports. The block inherits the data type from the signal
at the input port. Valid data types are single
, double
,
int8
, uint8
, int16
,
uin16
, int32
, and uint32
.
Other Supported Features
The Serial Send block supports the use of Simulink® Accelerator mode, but not Rapid Accelerator. This feature speeds up the execution of Simulink models.
The Serial Send block supports the use of model referencing. This feature lets your model include other Simulink models as modular components.
The Serial Send block supports C/C++ code generation. This feature allows you to generate C and C++ code using Simulink Coder™.
For more information on these features, see the Simulink documentation.
Ports
Input
Parameters
Extended Capabilities
Version History
Introduced in R2008a