Documentation

xPCScGetTriggerScopeSample

Get sample number for triggering scope

Prototype

int xPCScGetTriggerScopeSample(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

If the function acquires a real sample, it returns a nonnegative integer. If the triggering scope triggers at the end of the data acquisition cycle, the function returns -1. If the function detects an error, it returns INT_MIN (-2147483647-1).

Description

The xPCScGetTriggerScopeSample function gets the number of samples a triggering scope (scNum) acquires before starting data acquisition on a second scope. Use the xPCGetScope function to get the scope number for the trigger scope.

Introduced before R2006a

Was this topic helpful?