GxAoGetChannelVoltage

Purpose

Returns the specified channel’s group voltage.

Syntax

GxAoGetChannelVoltage (nHandle, nGroup, nChannel, pdVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX16xx board.
nGroup
SHORT
Group number:
0.   GXAO_GROUPA
1.   GXAO_GROUPB
2.   GXAO_GROUPC
3.   GXAO_GROUPD
nChannel
SHORT
Channel number 0-15.
pdVoltage
PDOUBLE
Returned channel voltage
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns the voltage for group A channel 4:

 

SHORT nStatus;

DOUBLE dVoltage;

 

GxAoGetChannelVoltage (nHandle, GXAO_GROUPA, 4, &dVoltage, &nStatus);

 

See Also

GxAoSetChannelVoltage, GxAoSetGroupVoltageRange, GxAoGetGroupVoltageRange, GxAoGetErrorString