| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → xPC Target |
| Contents | Index |
| Learn more about xPC Target |
The xPC Target API consists of a series of C functions that you can call from a C or C++ application. These functions enable you to
Establish communication between the host PC and the target PC via an Ethernet or serial connection
Load the target application, a .dlm file, to the target PC
Run that application on the target PC
Monitor the behavior of the target application on the target PC
Stop that application on the target PC
Unload the target application from the target PC
Close the connection to the target PC
The xpcapi.dll file contains the xPC Target API dynamic link library. It contains over 90 functions that enable run-time linking rather than static linking at compile time. The functions provide all the information and accessibility needed to access the target application. Accessing the xPC Target API DLL is beneficial when you are building applications using development environments such as Microsoft Foundation Class Library/Active Template Library (MFC/ATL), DLL, Win32 (non-MFS) program and DLL, and console programs integrating with third-party product APIs (for example, Altia).
All custom xPC Target API applications must link with the xpcapi.dll file (xPC API DLL). Also associated with the dynamic link library is the xpcinitfree.c file. This file contains functions that load and unload the xPC Target API. You must build this file along with the custom xPC Target API application.
The documentation reflects the fact that the API is written in the C programming language. However, the API functions are usable from other languages and applications, such as C++ and Java.
Note To write a non-C application that calls functions in the xPC Target API library, refer to the compiler documentation for a description of how to access functions from a library DLL. You must follow these directions to access the xPC Target API DLL. |
The following chapters describe the xPC Target API in more detail:
xPC Target API describes how to create a C xPC Target API application.
and describe the xPC Target C and COM API functions.
![]() | xPC Target API versus xPC Target COM API | What Is xPC Target COM API? | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |