Outputs a static voltage from the specified Arb channel.
Gx3722ArbWriteStatic (nHandle, nChannel, dVoltage, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
nChannel |
SHORT |
Channel number:1. GX3722_ARB_CH1.2. GX3722_ARB_CH2. |
dVoltage |
DOUBLE |
Sets the voltage to output, -5.0 to 5.0 Volts. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Arbitrary waveform generation and static voltage generations are mutually exclusive modes. Calling Gx3722ArbWriteStatic()API to set the voltage of GX3722_ARB_CH1 will stop any waveform generation occurring on GX3722_ARB_CH2. A call to Gx3722ArbStop() API will cause the GX3722 to switch to waveform generation mode, but will not enable the sequencer.
The following example will output 2.5 Volts on Arb channel 1 and -2.5 Volts on Arb channel 2:
Gx3722ArbWriteStatic(nHandle, GX3722_ARB_CH1, 2.5, &nStatus);
Gx3722ArbWriteStatic(nHandle, GX3722_ARB_CH2, -2.5, &nStatus);