Configure TCP client
Simulink Real-Time / IP
The TCP Client block configures a TCP client.
The parameters Client IP address and Client port are optional. The Client IP address applies when the block executes in a real-time application on a target computer or in a model simulation on a development computer. If your model is running in Simulink® on the development computer, you can use this block to transmit data to a remote device. In this case, the Windows® operating system determines the network connection.
Use host-target connection — Use Ethernet connection between development and target computers
'off' (default) |
When you select this parameter, it deactivates the Client IP
address parameter and excludes the ports
5560 from use by
Client IP address — IP address of the client
device that is being
no value (default) |
If you are using a dedicated Ethernet card, this value must match the Local IP Address parameter in the IP Config block for the network interface. The default value for the Client IP address field is no value. This empty field means that the operating system chooses the Client IP address for TCP transmission.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Version HistoryIntroduced in R2020b
R2021b: Changed Parameters Client IP Address and Client Port
The parameters for the TCP Client block have changed. The parameters Client IP address and Client port are optional.