Returns the specified channel input slope.
GxCntGetChannelSlope (nHandle, nChannel, pnSlope, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a counter board. |
nChannel |
SHORT |
Specified Channel number:
|
pnSlope |
PSHORT |
Returned 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 returns channel A input slope:
SHORT nHandle, nMode, nStatus;
GxCntGetChannelSlope (nHandle, GXCNT_CHANNEL_A, &nMode, &nStatus)
GxCntSetChannelSlope, GxCntGetErrorString