Sets the sample count for waveform digitization.
Gx3722DigitizerSetSampleCount (nHandle, dwSampleCount, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
dwSampleCount |
DWORD |
Specifies the sample count, 1 to 524288 (512K Samples). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The sample count is the number of samples that are digitized after calling Gx3722DigitizerTrigger() API.
The following example programs the digitizer to take 2048 samples and then begins sampling:
Gx3722DigitizerSetSampleCount (nHandle, 2048, &nStatus);
Gx3722DigitizerTrigger (nHandle, &nStatus);
Gx3722DigitizerArm, Gx3722DigitizerHalt, Gx3722DigitizerSetTriggerSource, Gx3722DigitizerSetTriggerMode, Gx3722DigitizerSetTriggerThreshold, Gx3722DigitizerGetSampleCount, Gx3722DigitizerTrigger, Gx3722DigitizerReadWaveform, Gx3722DigitizerReadWaveformEx, Gx3722DigitizerSetPxiTrigger, Gx3722DigitizerGetState, Gx3722DigitizerGetSampleStatus, GxFpgaGetErrorString