Raw Ethernet / User Datagram Protocol (UDP)
The User Datagram Protocol (UDP) is a transport protocol layered on top of the Internet Protocol (IP) and is commonly known as UDP/IP.
It is analogous to TCP/IP but differentiates as follows: TCP communication can be compared to a telephone conversation where a 连接ion is required at all times and two-way streaming data (the words spoken by each party to the conversation) are ex改变d. UDP, on the 其他 hand, can be compared to sending letters by mail (without a return address). If the 其他 party is not found, or the letter is lost in transit, it is simply discarded.
UDP as supported by xPC Target allows you to 连接 your target machine to 其他 节点 by either sharing the Ethernet port used for host/target Ethernet communication via a multi port Ethernet switch or starting with R2011a (xPC Target V. 5.0) by using a dedicated Fast Ethernet card (see below).
In case you're using R2008b or later but don't have access to R2011a and in case your 其他 节点 are target computers you can also use a dedicated Fast Ethernet port such as provided by the IO701 together with the Raw Ethernet blocks which are part of the xPC Target library to easily recognize, send, and receive Ethernet packets.
IO701 |
Fast Ethernet Card with one port, PCI form factor |
IO702 |
Fast Ethernet Card with two ports, PCI form factor |
IO703 |
Fast Ethernet Card with one port, PMC form factor |
The advantage of using UDP via the same port used for the host/target communication is that you don't require an additional Ethernet port. The disadvantage is decreased reliability as error checking and recovery is limited if network traffic by 其他 host-target communication data is heavy.
Therefore provided that you have sufficient I/O expansion space in your target machine and access to R2011a Speedgoat recommends to use a dedicated (low expensive) I/O module such as the IO701 for real-time UPD.
Further information about the UDP and Raw Ethernet protocol support is available in the MathWorks reference guide for xPC Target:
Real-Time UPD Communication Support
Model-Based Etheret Communications Support (Raw Ethernet)
UDP I/O support (UDP via Host-Target communication)
IO701
PCI Fast Ethernet card
Intel 8255X Ethernet card to 连接 your target machine with 其他 节点 using real-time UDP (starting with R2011a) or Raw Ethernet (starting with R2008b).
This I/O module is in the PCI form factor and can be used with the Performance, Basic, and Automation real-time target machine from Speedgoat.
In addition to the IO701 Speedgoat also offers the IO702 providing two Fast Ethernet ports (PCI form factor) and the IO703 which is in the PMC form factor suitable for installation into the Mobile, Openframe, and Modular real-time target machines.