Documentation

xPCGetNumStates

Return number of states

Prototype

int xPCGetNumStates(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the number of states in the real-time application. If the function detects an error, it returns -1.

Description

The xPCGetNumStates function returns the number of states in the real-time application.

Introduced before R2006a

Was this topic helpful?