Returns the specified channel’s group voltage.
GxAoGetChannelVoltage (nHandle, nGroup, nChannel, pdVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX16xx board. |
nGroup |
SHORT |
Group number:0. GXAO_GROUPA1. GXAO_GROUPB2. GXAO_GROUPC3. GXAO_GROUPD |
nChannel |
SHORT |
Channel number 0-15. |
pdVoltage |
PDOUBLE |
Returned channel voltage |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The following example returns the voltage for group A channel 4:
SHORT nStatus;
DOUBLE dVoltage;
GxAoGetChannelVoltage (nHandle, GXAO_GROUPA, 4, &dVoltage, &nStatus);
GxAoSetChannelVoltage, GxAoSetGroupVoltageRange, GxAoGetGroupVoltageRange, GxAoGetErrorString