Documentation

xPCScGetNumPrePostSamples

Get number of pre- or post-triggering samples before triggering scope

Prototype

int xPCScGetNumPrePostSamples(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

Returns the number of samples for pre- or posttriggering for scope scNum. If an error occurs, this function returns the minimum integer value (-2147483647-1).

Description

The xPCScGetNumPrePostSamples function gets the number of samples for pre- or posttriggering for scope scNum. A negative number implies pretriggering, whereas a positive number implies posttriggering samples. Use the xPCGetScope function to get the scope number.

Introduced before R2006a

Was this topic helpful?