Specifications
RS-232 Simulink Block Reference
2-33
RS-232 Send Message Structure (Asynchronous)
Below is a description of the possible message fields for the send structures.
with synchronous mode. The order of the message fields does not matter.
However, the field names are case sensitive.
Timeout Time, in seconds, the driver block waits for data to be
returned. Default value =
0.049.
EOM Character at the end of a message.
•
Send_Receive_struct(index).inputports — Defines
the number of input ports for the driver block.
•
Send_Receive_struct(index).recdata — Data received
through the serial port. Default value =
[ ].
Messge
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 Character at the end of a message.Character at the end of a
message.
Messge
Field
Description