Documentation

xPCGetSampleTime

Return real-time application sample time

Prototype

double xPCGetSampleTime(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

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

Description

The xPCGetSampleTime function returns the sample time, in seconds, of the real-time application. You can get the error by using the function xPCGetLastError.

Introduced before R2006a

Was this topic helpful?