Gx3722DigitizerSetSampleRate

Purpose

Sets the sample rate for waveform digitization.

Syntax

Gx3722DigitizerSetSampleRate (nHandle, nSampleRate, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Handle to a GX3722 board.
nSampleRate
DWORD
Specifies the sample rate, sample rate can be as follows:
0.   GX3722_DIGITIZER_SAMPLE_RATE_10MS_SEC: sample rate is 10 mega samples per sec.
1.   GX3722_DIGITIZER_SAMPLE_RATE_1MS_SEC: sample rate is 1 mega samples per sec.
2.   GX3722_DIGITIZER_SAMPLE_RATE_100KS_SEC: sample rate is 100 kilo samples per sec.
3.     GX3722_DIGITIZER_SAMPLE_RATE_10KS_SEC: sample rate is 10 kilo samples per sec.
4.   GX3722_DIGITIZER_SAMPLE_RATE_1KS_SEC: sample rate is 1 kilo samples per sec.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The function sets the sample rate for waveform digitization.

The sample count is the number of samples that are digitized after calling Gx3722DigitizerTrigger() API.

Example

The following example sets the sample rate to 1K samples per sec, and trigger the card:

 

Gx3722DigitizerSetSampleRate (nHandle, GX3722_DIGITIZER_SAMPLE_RATE_1KS_SEC, &nStatus);

Gx3722DigitizerTrigger (nHandle, &nStatus);

 

See Also

Gx3722DigitizerArm, Gx3722DigitizerHalt, Gx3722DigitizerSetTriggerSource, Gx3722DigitizerGetSampleRate, Gx3722DigitizerSetTriggerMode, Gx3722DigitizerSetTriggerThreshold, Gx3722DigitizerGetSampleCount, Gx3722DigitizerTrigger, Gx3722DigitizerReadWaveform, Gx3722DigitizerReadWaveformEx, Gx3722DigitizerSetPxiTrigger, Gx3722DigitizerGetState, Gx3722DigitizerGetSampleStatus, GxFpgaGetErrorString