MATLAB Answers

Can I use 'xpcapi.dll' or 'xPCFramework.dll' in Simulink Real-Time in R2020b and onwards?

14 views (last 30 days)
We currently run into an issue after upgrading to R2020b. Previously, when we worked in R2020a and earlier, there was a Simulink Real-Time .NET API and Simulink Real-Time C API  to load and control the simulation on the Speedgoat using a third-party environment such as Microsoft .NET or C.
The client application depended on the two DLLs xPCFramework.dll and xpcapi.dll. However, post R2020b release, I am not able to find these DLLs in the MATLAB installation anymore.
Are these APIs still available in the latest MATLAB?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 23 Sep 2021 at 4:00
These .NET and C APIs are not available anymore as part of Simulink Real-Time. The reason is that Simulink Real-Time went through a major product update for the R2020b release, and the .NET and C APIs for Simulink Real-Time were deprecated in R2020b as part of this. Customers would have to connect their external platform application (example in C# or Visual Studio) to MATLAB and communicate with Speedgoat through the MATLAB APIs.
Consider one of the following alternative workflows:
(a) MATLAB App Designer:
Starting from R2020b, the recommended way to control applications on Speedgoat is through MATLAB App Designer. The .NET API had a limited number of functions, while with App Designer, you have access to the full MATLAB API for Simulink Real-Time. For an example, see:
If you have a MATLAB Compiler license, you can compile your App Designer GUI as a standalone executable (from R2021b onwards). For more information, see:
(b) Simulink Real-Time ASAM XIL API:
Starting from R2021b, if your goal is automatic testing, you can interface Simulink Real-Time models with test cases from third-party software that supports the ASAM XIL API (e.g. TraceTronic ECU-TEST or Piketec TPT). To use an ASAM XIL simulation workflow for your real-time applications, install the Simulink Real-Time XIL API support package. Follow the workflow in:
The Simulink Real-Time XIL API support package provides an API that lets you use a C# program to control real-time applications on the target computer. For more information, see:

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!