Specifications
2 RS232 I/O Support
2-12
8 Click OK. The Block Parameters dialog box closes.
9 Double-click the RS-232 Send/Receive block. The Block Parameters dialog
box opens.
10 From the Port list, choose either COM1 or COM2. For this example, choose
COM1. In the Message StructName box, enter the name for the MATLAB
structure this block uses to send messages to the COM1 port. In the
Sample
Time
box, enter the sample time or a multiple of the sample time you
entered in the Receive block.
You
Block Parameter dialog box should look similar to the figure shown
below.
For information on entering the block parameters, see “RS-232 Send/Receive
Block (Synchronous)” on page 2-29. For the procedure to create the send/
receive structure, see “RS-232 MATLAB Structure Reference” on page 2-31.
11 Click OK. The Block Parameters dialog box closes.