xPCScGetNumPrePostSamples

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

Prototype

int xPCScGetNumPrePostSamples(int port, int scNum);

Note

Do not use this C API type definition. Support for this type definition relies on support for the C API, which will be removed in a future release.

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