Sets the specified DAC voltage.
Gx1838SetDacVoltage (nHandle, nDac, dVoltage, pnStatus)
Name |
Type |
Description |
nHandle |
SHORT |
Handle to a GX1838 board. |
nDac |
SHORT |
Specified DAC number.0. GX1838_DAC_A1. GX1838_DAC_B2. 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. |
The following example sets DAC A to 10V:
SHORT nStatus;
Gx1838SetDacVoltage (nHandle, DAC_A, 10, &nStatus);
Gx1838GetDacVoltage, Gx1838SetRailSource, Gx1838GetRailSource, GxPdoGetErrorString