xPC Target    

RS-232 Receive Block (Asynchronous)

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

Parameter
Description
Port

This list allows you to define which COM port the data is used to send and receive data. The model must contain one RS232 Setup block for the same COM port. Otherwise, an error message is displayed.

Message Structure Name

Enter the name of the MATLAB structure this block uses to receive messages and data from an RS-232 device. For information on creating this structure, see Creating RS-232 Message Structures (Asynchronous).

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 Block (Asynchronous) RS-232 MATLAB Structure Reference