Gx3722DigitizerGetState

Purpose

Returns the specified digitizer channel state.

Syntax

Gx3722DigitizerGetState (nHandle, nChannel, pnState, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
nChannel
SHORT
Digitizer channel:
1.      GX3722_DIGITIZER_CH1: channel 1.
2.    GX3722_DIGITIZER_CH2: channel 2.
pnState
PSHORT
Returns the specified channel state:
0.      GX3722_DIGITIZER_CH_STATE_DISABLE: specified digitizer channel is disabled.
1.    GX3722_DIGITIZER_CH_STATE_ENABLE: specified digitizer channel is disabled.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function returns the specified digitizer channel state. If a channel is disabled no new data will be written to the channel’s memory.

Example

The following example sets digitizer PXI Trigger bus line 1, enable channel 1 and 2, and returns the settings:

 

SHORT nPxiTriggerLine;

Gx3722DigitizerSetPxiTrigger (nHandle, GX3722_DIGITIZER_PXI_TRIGGER_1, &nStatus);

Gx3722DigitizerSetState (nHandle, GX3722_DIGITIZER_CH1, GX3722_DIGITIZER_CH_STATE_ENABLE, &nStatus);

Gx3722DigitizerSetState (nHandle, GX3722_DIGITIZER_CH2, GX3722_DIGITIZER_CH_STATE_ENABLE, &nStatus);

Gx3722DigitizerGetPxiTrigger (nHandle, &nPxiTriggerLine, &nStatus);

 

See Also

Gx3722DigitizerArm, Gx3722DigitizerHalt, Gx3722DigitizerSetTriggerSource, Gx3722DigitizerSetTriggerMode, Gx3722DigitizerSetTriggerThreshold, Gx3722DigitizerSetSampleCount, Gx3722DigitizerTrigger, Gx3722DigitizerReadWaveform, Gx3722DigitizerReadWaveformEx, Gx3722DigitizerSetPxiTrigger, Gx3722DigitizerSetState, Gx3722DigitizerGetSampleStatus, GxFpgaGetErrorString