Gx1838GetDacOutputRange

Purpose

Returns the specified DAC output voltage range.

Syntax

Gx1838GetDacOutputRange (nHandle, nDac, nDataSource, pdMinVoltage, pdMaxVoltage, pnStatus)

Parameters

Name
Type
Description
nHandle
SHORT
Handle to a GX1838 board.
nDac
SHORT
Specified DAC number.
0. GX1838_DAC_A
1. GX1838_DAC_B
2. GX1838_DAC_C
PdMinVoltage
PDOUBLE
Returns the specified DAC minimum output voltage range.
PdMaxVoltage
PDOUBLE
Returns the specified DAC maximum output voltage range.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns DAC A output voltage range:

 

SHORT nStatus;

DOUBLE dMinVoltage, dMaxVoltage;

Gx1838GetDacOutputRange (nHandle, GX1838_DAC_A, &dMinVoltage, &dMaxVoltage, &nStatus);

 

See Also

Gx1838GetBoardSummary, GxPdoGetErrorString