Documentation

xPCGetStopTime

Return stop time

Prototype

double xPCGetStopTime(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the stop time as a double, in seconds, of the real-time application. If the function detects an error, it returns -10.0. If the stop time is infinity (run forever), this function returns -1.0.

Description

The xPCGetStopTime function returns the amount of time, in seconds, that the real-time application runs before stopping. If the function detects an error, it returns -10.0. Use the function xPCGetLastError to find the error number.

Introduced before R2006a

Was this topic helpful?