Sets the specified channel input slope.
GxCntSetChannelSlope (nHandle, nChannel, nSlope, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
nChannel |
SHORT |
Specified Channel number:
|
nSlope |
SHORT |
Channel’s slope:
|
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The channel slope sets the input signal edge that utilized for the measurement. The slope can specify either rising (Positive) edge or falling (Negative) edge.
The following example sets channel A input slope to negative:
SHORT nHandle, nStatus;
GxCntGetChannelSlope (nHandle, GXCNT_CHANNEL_A, GXCNT_NEGATIVE_SLOPE, &nStatus)
GxCntGetChannelSlope, GxCntGetErrorString