Sets the specified channel’s group voltage.
GxAoSetChannelVoltage (nHandle, nGroup, nChannel, dVoltage, 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. |
dVoltage |
DOUBLE |
Channel's voltage. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The voltage must be in the group’s voltage range otherwise the function returns an error.
Calling this function will set GxAoGetGroupUpdateState to low (i.e. the group was updated).
The following example sets the voltage for group A channel 4 to 2.34V:
SHORT nStatus;
GxAoGetChannelVoltage (nHandle, GXAO_GROUPA, 4, 2.34, &nStatus);
GxAoGetChannelVoltage, GxAoSetGroupVoltageRange, GxAoGetGroupVoltageRange, GxAoGetErrorString