Gx1838SetDacVoltage

Purpose

Sets the specified DAC voltage.

Syntax

Gx1838SetDacVoltage (nHandle, nDac, dVoltage, 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
dVoltage
DOUBLE
DAC voltage, voltage can be between –10V  to 32V
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example sets DAC A to 10V:

 

SHORT nStatus;

Gx1838SetDacVoltage (nHandle, DAC_A, 10, &nStatus);

 

See Also

Gx1838GetDacVoltage, Gx1838SetRailSource, Gx1838GetRailSource, GxPdoGetErrorString