GxAoStandardWaveformGetDutyCycle

Purpose

Gets the duty cycle of the specified channel.

Applied To

GX1632e

Syntax

GxAoStandardWaveformGetDutyCycle (nHandle, nGroup, nChannel, pdDutyCycle, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1632e board.
nGroup
SHORT
Group number:
0.      GXAO_GROUPA
1.      GXAO_GROUPB
2.      GXAO_GROUPC
3.    GXAO_GROUPD
nChannel
SHORT
Channel number:
0.      GXAO_CHANNEL_0
1.      GXAO_CHANNEL_1
2.      GXAO_CHANNEL_2
3.      GXAO_CHANNEL_3
4.      GXAO_CHANNEL_4
5.      GXAO_CHANNEL_5
6.      GXAO_CHANNEL_6
7.    GXAO_CHANNEL_7
pdDutyCycle
PDOUBLE
Returns the programmed duty cycle.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

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);

 

See Also

GxAoStandardWaveformSetDutyCycle, GxAoGetErrorString