You create an xPC Target application using xPC Target with Simulink Coder to automatically generate and compile a C/C++ code representation of a Simulink model. You then download the target application via a LAN (Ethernet) connection from the host computer to the target computer.
xPC Target enables you to access the target application and control it directly from the host computer using either the xPC Target Explorer tool or the MATLAB® command line. You can download your target application, start and stop real-time test execution, change the sample time and stop time, and modify other target application properties.
xPC Target also provides flexible APIs for MATLAB, .NET, C, and COM that let you programmatically control the target application running on the target computer.
Once you have a working xPC Target application, you can run the application in standalone mode using xPC Target Embedded Option. In standalone mode, the xPC Target application automatically starts and executes on the target computer without requiring a host computer.