Returns the analog output state of all eight analog out channels.
Gx3788AnalogOutGetOutputState (nHandle, pbOutputEnable, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3788 board. |
pbOutputEnable |
PBOOL |
Returns the analog output state of eight channels:0. GX3788_ANALOG_OUT_ENABLE: All the analog output channels are enabled (driving voltage).1. GX3788_ANALOG_OUT_DISABLE: All the analog output channels are disabled (not driving voltage). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function returns the analog output state of all eight analog out channels.
The following example enables all the analog output channels, and returns the state of analog output:
SHORT nStatus;
BOOL bAnalogOutputState;
Gx3788AnalogOutSetOutputState (nHandle, GX3788_ANALOG_OUT_ENABLE, &nStatus);
Gx3788AnalogOutGetOutputState (nHandle, &bAnalogOutputState, &nStatus);
Gx3788AnalogOutReset, Gx3788AnalogOutSetVoltage, Gx3788AnalogOutSetOutputState, GxFpgaGetErrorString