Documentation

xPCLoadApp

Load real-time application onto target computer

Prototype

void xPCLoadApp(int port, const char *pathstr,  
const char *filename);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

pathstr

Enter the full path to the real-time application file, excluding the file name. For example, in C, use a character string like "C:\\work".

filename

Enter the name of a compiled real-time application without the file extension. For example, in C use a character string like "xpcosc".

Description

The xPCLoadApp function loads the compiled real-time application to the target computer. pathstr must not contain the trailing backslash. If the real-time application is in the current folder, you can set pathstr to NULL or to the character string 'nopath'. The variable filename must not contain the real-time application extension.

Introduced before R2006a

Was this topic helpful?