Gx3788AnalogInGetGroundSource

Purpose

Returns the analog input ground source.

Syntax

Gx3788AnalogInGetGroundSource (nHandle, nChannels, pnGroundSource, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3788 board.
nChannels
SHORT
Select analog in channel group to query:
0.      GX3788_ANALOG_IN_CHANNELS_0_7: Channel group 0 to 7.
1.    GX3788_ANALOG_IN_CHANNELS_8_15: Channel group 8 to 15.
pnGroundSource
PSHORT
Returns the analog input Ground Source:
0.      GX3788_ANALOG_IN_DIGITAL_GND: Digital Ground.
1.    GX3788_ANALOG_IN_ANALOG_GND: Analog Ground
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function returns the analog input ground source to either Digital Ground or Analog Ground per group of 8 channels.

Example

The following example sets the ground source of analog channels 0 through 7 to digital ground, and returns the settings:

 

SHORT nGroundSource, nStatus;

 

Gx3788AnalogInSetGroundSource (nHandle, GX3788_ANALOG_IN_CHANNELS_0_7, GX3788_ANALOG_IN_DIGITAL_GND, &nStatus);

Gx3788AnalogInGetGroundSource (nHandle, GX3788_ANALOG_IN_CHANNELS_0_7, &nGroundSource, &nStatus);

 

See Also

Gx3788AnalogInMeasureChannel, Gx3788AnalogInSetGroundSource, Gx3788Reset, GxFpgaGetErrorString