xPC Target    

Using RS232 Binary Mode

To use the RS232 Binary Mode blocks, you must first insert exactly one RS232 Setup block for each COM port into your model. The setup for this block is exactly the same as it is for text-based I/O, except that you do not need Initialization or Termination structures. In the dialog box, set both these fields to the empty matrix ([]).

The RS232 Binary Mode blocks may be found in the RS232 section of the xPC Target Block Library. Use the following procedure to access these blocks:

  1. In the MATLAB command window, type
  1. The xPC Target Block Library open.

  1. Double-click the group block RS232.
  1. The Library: xpclib/RS232 library opens.

  1. Double-click the group block Binary Mode.
  1. The Library: xpclib/RS232/Binary Mode library opens.

  1. Drag-and-drop any of these blocks into your Simulink model.

  RS232 Binary Mode I/O RS232 Binary Receive Block