Returns the sample rate for waveform digitization.
Gx3722DigitizerGetSampleRate (nHandle, pnSampleRate, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3722 board. |
pnSampleRate |
PSHORT |
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. |
The function returns the sample rate for waveform digitization.
GX3722_DIGITIZER_SAMPLE_RATE_10MS_SEC: sample rate is 10 mega samples per sec, at that settings each channel can acquire up to 500K samples, for a total of 52.4 mSec.
GX3722_DIGITIZER_SAMPLE_RATE_1MS_SEC: sample rate is 1 mega samples per sec, at that settings each channel can acquire up to 500K samples, for a total of 524.3 mSec.
GX3722_DIGITIZER_SAMPLE_RATE_100KS_SEC: sample rate is 100 kilo samples per sec, at that settings each channel can acquire up to 500K samples, for a total of 5.243 Sec.
GX3722_DIGITIZER_SAMPLE_RATE_10KS_SEC: sample rate is 10 kilo samples per sec, at that settings each channel can acquire up to 500K samples, for a total of 52.42 Sec.
GX3722_DIGITIZER_SAMPLE_RATE_1KS_SEC: sample rate is 1 kilo samples per sec, at that settings each channel can acquire up to 500K samples, for a total of 524.288 Sec.
The sample count is the number of samples that are digitized after calling Gx3722DigitizerTrigger() API.
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);
Gx3722DigitizerArm, Gx3722DigitizerHalt, Gx3722DigitizerSetTriggerSource, Gx3722DigitizerSetTriggerMode, Gx3722DigitizerSetTriggerThreshold, Gx3722DigitizerSetSampleCount, Gx3722DigitizerTrigger, Gx3722DigitizerReadWaveform, Gx3722DigitizerReadWaveformEx, Gx3722DigitizerSetPxiTrigger, Gx3722DigitizerGetState, Gx3722DigitizerGetSampleStatus, GxFpgaGetErrorString