Documentation

xPCGetLogMode

Return logging mode and increment value for real-time application

Prototype

lgmode xPCGetLogMode(int port);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

Return

Returns the logging mode in the lgmode structure. If the logging mode is 1 (LGMOD_VALUE), this function also returns an increment value in the lgmode structure. If an error occurs, this function returns -1.

Description

The xPCGetLogMode function gets the logging mode and increment value for the current real-time application. The increment (difference in amplitude) value is measured between logged data points. A data point is logged only when an output signal or a state changes by the increment value.

Introduced before R2006a

Was this topic helpful?