Documentation

xPCNumLogSamples

Return number of samples in log buffer

Prototype

int xPCNumLogSamples(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the number of samples in the log buffer. If the function detects an error, it returns -1.

Description

The xPCNumLogSamples function returns the number of samples in the log buffer. In contrast to xPCMaxLogSamples, which returns the maximum number of samples that can be logged (because of buffer size constraints), xPCNumLogSamples returns the number of samples logged.

The real-time application must be stopped before you get the number.

Introduced before R2006a

Was this topic helpful?