Gx3788AnalogOutSetOutputState

Purpose

Sets the analog output state of all eight analog out channels.

Syntax

Gx3788AnalogOutSetOutputState (nHandle, bOutputEnable, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3788 board.
bOutputEnable
BOOL
Sets the analog output state of all eight analog out 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.

Comments

The function sets the analog output state of all eight analog out channels.

Example

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);

 

See Also

Gx3788AnalogOutReset, Gx3788AnalogOutGetOutputState, Gx3788AnalogOutSetVoltage, Gx3788AnalogOutGetVoltage,  GxFpgaGetErrorString