Documentation

xPCScSetTriggerMode

Set trigger mode of scope

Prototype

void xPCScSetTriggerMode(int port, int scNum, int mode);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

mode

Trigger mode for a scope.

Description

The xPCScSetTriggerMode function sets the trigger mode of scope scNum to mode. Use this function only when the scope is stopped. Use xPCScGetState to check the state of the scope. Use the xPCGetScopes function to get a list of scopes.

Use the constants defined in xpcapiconst.h to interpret the trigger mode:

Constant

Value

Description

TRIGMD_FREERUN

0

There is no trigger mode. The scope triggers when it is ready to trigger, regardless of the circumstances. This mode is the default.

TRIGMD_SOFTWARE

1

Only user intervention can trigger the scope. No other triggering is possible.

TRIGMD_SIGNAL

2

The scope is triggered only after a signal has crossed a value.

TRIGMD_SCOPE

3

Another scope triggers this scope at the trigger point of the triggering scope, modified by the value of triggerscopesample (see scopedata).

Introduced before R2006a

Was this topic helpful?