Gets the duty cycle of the specified channel.
Applied To
GX1632e
GxAoStandardWaveformGetDutyCycle (nHandle, nGroup, nChannel, pdDutyCycle, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1632e board. |
nGroup |
SHORT |
Group number:0. GXAO_GROUPA1. GXAO_GROUPB2. GXAO_GROUPC3. GXAO_GROUPD |
nChannel |
SHORT |
Channel number:0. GXAO_CHANNEL_01. GXAO_CHANNEL_12. GXAO_CHANNEL_23. GXAO_CHANNEL_34. GXAO_CHANNEL_45. GXAO_CHANNEL_56. GXAO_CHANNEL_67. GXAO_CHANNEL_7 |
pdDutyCycle |
PDOUBLE |
Returns the programmed duty cycle. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example gets the duty cycle of Group D, channel 6:
SHORT nStatus;
DOUBLE dDutyCycle;
GxAoStandardWaveformGetDutyCycle(nHandle, GXAO_GROUPD, GXAO_CHANNEL_6, &dDutyCycle, &nStatus);