Documentation

xPCIsAppRunning

Return real-time application running status

Prototype

int xPCIsAppRunning(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

If the real-time application is stopped, the xPCIsAppRunning function returns 0. If the real-time application is running, this function returns 1. If the function detects an error, it returns -1.

Description

The xPCIsAppRunning function returns 1 or 0 depending on whether the real-time application is stopped or running. If the function detects is an error, use the function xPCGetLastError to check for the error character string constant.

Introduced before R2006a

Was this topic helpful?