Transmission Control Protocol (TCP) is a client/server packet-based protocol that uses an Ethernet board as physical layer. Each TCP packet contains bytes provided by an application layer. You can transfer data using this protocol from a real-time application that is executing on the target computer. For more information about the TCP standard, see TCP Transport Protocol.
The Simulink® Real-Time™ implementation can support either a dedicated Ethernet network or a shared Ethernet network.
To create a dedicated Ethernet network, use a separate Ethernet board that is compatible with PCI standard bus architectures, such as PCI, PCI Express®, and PXI®. Configure the TCP Client Configure and TCP Server Configure blocks with the PCI bus and slot number of the dedicated Ethernet board. You can then transfer data to and from a TCP-compatible device that is connected to the target computer through the dedicated Ethernet board.
To create a shared Ethernet network, use the same Ethernet hardware port as the target computer uses to communicate with the development computer. Configure the TCP Client Configure and TCP Server Configure blocks to use the connection between development and target computers. To transfer data to and from a TCP-compatible device that is connected to this network, use a switch.
The Simulink Real-Time TCP blocks function only when executed on the target computer. When simulated on the development computer, they do nothing.
|TCP Client||Configure TCP client|
|TCP Server||Configure TCP server|
|TCP Send||Send data over TCP network to a remote device|
|TCP Receive||Receive data over TCP network from a remote device|
|Byte Packing||Construct data frames|
|Byte Unpacking||Deconstruct data frames|
|Byte Reversal/Change Endianess||Reverse little-endian data for big-endian processor|
|Shared Memory Pack||Shared memory pack|
|Shared Memory Unpack||Shared memory unpacking|
- TCP Transport Protocol
The Simulink Real-Time software supports communication from the target computer to other systems or devices by using Transmission Control Protocol (TCP).
- TCP/IP Interface (Instrument Control Toolbox)
- UDP Interface (Instrument Control Toolbox)
- TCP/IP Communication