xPC Target    

RS232 Binary Mode I/O

The Binary mode drivers operate in asynchronous mode. In other words, they do not wait until an entire packet of data is received, but receive as many bytes as available and then go on to the next block. When an entire packet has been received, the block outputs the new data. Sent data is also handled similarly. The Send block instructs the RS232 hardware to send a certain number of bytes, but does not wait for these bytes to actually be sent.

The RS232 Binary Mode infrastructure also includes blocks to Pack and Unpack any data received. This translates the raw bytes into signals that Simulink can understand.

The functioning of these blocks is identical to the corresponding blocks in the UDP section of the xPC Target block library. The RS232 Binary Pack and Unpack blocks are actually references to these blocks. For information about UDP and the functionality of these blocks, see UDP I/O Support.


  RS-232 Binary Mode Using RS232 Binary Mode