xPC Target    

RS-232 Send Message Structure (Asynchronous)

Below is a description of the possible message fields for the send structure. with synchronous mode. The order of the message fields does not matter. However, the field names are case sensitive.

Message Field
Description
SendData

Data and format sent to the RS-232 device. Default value = ''

InputPorts

Number of input ports for the driver block. Data from the input ports is sent to the RS-232 device with the message field .SendData. Default value = []. The highest number you enter determines the number of input ports on the driver block.

For example, the following message creates two input ports on the driver block,

  • RS232_Send_Receive(1).InputPorts= [1 2];
    
Timeout

Time, in seconds, the driver block waits for data to be returned. Default value = 0.049.

EOM

Number of characters you use to indicate the end of a message.


  RS-232 Send/Receive Message Structure (Synchronous) RS-232 Receive Message Structure (Asynchronous)