| 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 and xPC Target COM API interfaces provide the same functionality for you to write custom applications. There is no difference in performance or functionality between applications written against either library. Note that the C API is threadsafe. The COM API is not threadsafe.
The xPC Target API DLL consists of C functions that you can incorporate into any high-level language application. The xPC Target COM API consists of a suite of interfaces that you can reference while building a graphic user interface (GUI) application. You can incorporate these interfaces using programming environments that work with COM objects. A user can use an application written through either interface to load, run, and monitor an xPC Target application without interacting with MATLAB®. With the xPC Target API, you write the application in a high-level language (such as C, C++, or Java) that works with an xPC Target application; this option requires that you are an experienced programmer. With xPC Target COM API, you use a graphical development environment to create a GUI that works with an xPC Target application. Designed to work with Microsoft® COM, the xPC Target COM API conforms to the component object model standard established by Microsoft.
The xPC Target API is distributed with two dynamic link libraries (DLLs) that make it easier to integrate with various development tools, tailoring the development environment to your needs:
A function library (xpcapi.dll)
A component library (xpcapicom.dll)
The following sections describe each library:
Note In this book, second-person references apply to those who write the xPC Target API and COM API applications. For example, "You can assign multiple labels to one tag." Third-person references apply to those who run the xPC Target API and COM API applications. For example, "You can later distribute this executable to users, who can then use the GUI application to work with target applications." |
![]() | Introduction | What Is xPC Target 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 |