xPCScGetTriggerMode

Get trigger mode for scope

Prototype

int xPCScGetTriggerMode(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 scope trigger mode. If the function detects an error, it returns -1.

Description

The xPCScGetTriggerMode function gets the trigger mode for scope scNum. Use the xPCGetScope function to get the scope number. Use the constants defined in xpcapiconst.h to interpret the trigger mode. These constants include the following:

Constant

Value

Description

TRIGMD_FREERUN

0

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

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