Documentation

xPCScSetTriggerSlope

Set slope of signal that triggers scope

Prototype

void xPCScSetTriggerSlope(int port, int scNum, int trigSlope);

Arguments

port

Enter the value returned by the function xPCOpenTcpIpPort.

scNum

Enter the scope number.

trigSlope

Enter the slope mode for the signal that triggers the scope.

Description

The xPCScSetTriggerSlope function sets the trigger slope of scope scNum to trigSlope. 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 set the trigger slope:

Constant

Value

Description

TRIGSLOPE_EITHER

0

The trigger slope can be either rising or falling.

TRIGSLOPE_RISING

1

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

TRIGSLOPE_FALLING

2

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

Introduced before R2006a

Was this topic helpful?