xPC Target    

RS-232 Send Block (Asynchronous)

The Block Parameters dialog box for the Asynchronous Send block contains the following fields.

Parameter
Description
Port

This list allows you to define which COM port is used for sending data. The model must contain one RS232 Setup block to configure its COM port. Otherwise, an error message is displayed.

Message Structure Name

Enter the name of the MATLAB structure this block uses to send messages and data to an RS-232 device. For information to create this structure, see Creating RS-232 Message Structures (Synchronous).

Sample Time

This entry allows you to define the sample time of the block. Because the block does not wait until data is received from the external RS-232 device, you can set sample times to small values.


  RS-232 Send/Receive Block (Synchronous) RS-232 Receive Block (Asynchronous)