Documentation

xPCScSetTriggerScopeSample

Set sample number for triggering scope

Prototype

void xPCScSetTriggerScopeSample(int port, int scNum, int 
trigScSamp);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

trigScSamp

Enter a nonnegative integer for the number of samples acquired by the triggering scope before starting data acquisition on a second scope.

Description

The xPCScSetTriggerScopeSample function sets the number of samples (trigScSamp) a triggering scope acquires before it triggers a second scope (scNum). Use the xPCGetScopes function to get a list of scopes.

For meaningful results, set trigScSamp between -1 and (nSamp - 1). nSamp is the number of samples in one data acquisition cycle for the triggering scope. If you specify too large a value, the scope is never triggered.

If you want to trigger a second scope at the end of a data acquisition cycle for the triggering scope, enter a value of -1 for trigScSamp.

Introduced before R2006a

Was this topic helpful?