xPC Target |
 |
Simulink Blocks for RS-232
To support the use of RS-232, the xPC Target I/O library includes a set of RS-232 driver blocks. These driver blocks can be added to your Simulink model to provide inputs and outputs using one or more of the RS-232 ports:
- RS-232 Setup -- One setup block is needed for each RS-232 port you use in your model. The setup block does not have any inputs or outputs, but sends the initialization and termination messages.
- RS-232 Send/Receive (Synchronous Mode) -- Send/Receive blocks have inputs and outputs from your Simulink model, and sequence both the send and receive messages.
- RS-232 Send (Asynchronous Mode) -- Send blocks have inputs from your Simulink model, and sequences the send messages.
- RS-232 Receive (Asynchronous Mode) -- Receive blocks have output from your Simulink model, and sequences the receive messages.
| Hardware Connections for RS-232 | | MATLAB Message Structures for RS-232 |  |