Documentation

xPCInitAPI

Initialize Simulink Real-Time DLL

Prototype

int xPCInitAPI(void);

Return

If the function completes execution without detecting an error, it returns 0. If the function detects an error, it returns -1.

Description

The xPCInitAPI function initializes the Simulink® Real-Time™ dynamic link library. To load the Simulink Real-Time API DLL, execute xPCInitAPI once at the beginning of the custom program. This function is defined in the file xpcinitfree.c. Link this file with your program.

Introduced before R2006a

Was this topic helpful?