Documentation

xPCScGetTriggerSlope

Get trigger slope for scope

Prototype

int xPCScGetTriggerSlope(int port, int scNum);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

Return

Returns the scope trigger slope. If the function detects an error, it returns -1.

Description

The xPCScGetTriggerSlope function gets the trigger slope of scope scNum. Use the xPCGetScope function to get the scope number for the trigger scope. Use the constants defined in xpcapiconst.h to interpret the trigger slope. These constants have the following meanings:

Constant

Value

Description

TRIGSLOPE_EITHER

0

The trigger slope can be either rising or falling.

TRIGSLOPE_RISING

1

The trigger slope must be rising when the signal crosses the trigger value.

TRIGSLOPE_FALLING

2

The trigger slope must be falling when the signal crosses the trigger value.

Introduced before R2006a

Was this topic helpful?