Sets the digitizer samples period time.
Gx3748DigitizerSetSamplesPeriod (nHandle, nSamplePeriod, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX3748 board. |
nSamplePeriod |
SHORT |
Samples period time for each acquisition data point, values can be as follows:0. GX3748_DIGITIZER_SAMPLE_PERIOD_2USEC:sample period is 2uSec = 500 KS/Sec.1. GX3748_DIGITIZER_SAMPLE_PERIOD_4USEC: sample period is 4uSec = 250 KS/Sec.2. GX3748_DIGITIZER_SAMPLE_PERIOD_8USEC: sample period is 8uSec = 125 KS/Sec.3. GX3748_DIGITIZER_SAMPLE_PERIOD_16USEC: sample period is 16uSec = 62.5 KS/Sec.4. GX3748_DIGITIZER_SAMPLE_PERIOD_32USEC: sample period is 32uSec = 31.250 KS/Sec.5. GX3748_DIGITIZER_SAMPLE_PERIOD_64USEC: sample period is 64uSec = 15.625 KS/Sec.6. GX3748_DIGITIZER_SAMPLE_PERIOD_128USEC: sample period is 128uSec = 7.8125 KS/Sec.7. GX3748_DIGITIZER_SAMPLE_PERIOD_256USEC: sample period is 256uSec = 3.90625 KS/Sec. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
The function sets the samples period time for each acquisition data point. The samples period time is common to all 3 groups.
The Gx3748 has 3 input groups (0-2) each with 16 channels (48 total input channels). The digitizer has 3 independent inputs, all 3 has the same programmable sample period. Sample period can be set by calling Gx3748DigitizerSetSamplesPeriod() API. Each of the 3 digitizer inputs can record up 87,300 samples, the number of sample to acquired are set by calling Gx3748DigitizerSetSamplesCount() API. Each of the digitizer inputs can have a programmable trigger mode, trigger mode can be set by calling the Gx3748DigitizerSetTriggerMode() API. The user can set programmatically the trigger threshold for each of the digitizer inputs by calling the Gx3748DigitizerSetTriggerThreshold() API. Acquisition progress and total number of samples acquired of each of the digitizers inputs can monitor at any time by calling the Gx3748DigitizerGetSamplesCounter() API. Each of the digitizer inputs can armed or disarmed by calling the Gx3748DigitizerArm() API.
The user can halt the acquisition at any time by calling the Gx3748DigitizerHalt() API.
Once acquisition is done, to verify use Gx3748DigitizerGetGroupStatus() and Gx3748DigitizerGetStatus() APIs, the user can read back the acquired data by calling Gx3748DigitizerReadWaveform() API. The acquired data also record the time when the trigger was detected, user can get the time stamp by calling the Gx3748DigitizerReadTriggerTimestamp() API.
Each of the digitizer inputs has a dedicated group of input channels:
Digitizer Group 0: user can select programmatically the source to be one of Group 0 channels 0-15 by calling Gx3748DigitizerSetSource() API.
Digitizer Group 1: user can select programmatically the source to be one of Group 1 channels 0-15 by calling Gx3748DigitizerSetSource() API.
Digitizer Group 2: user can select programmatically the source to be one of Group 2 channels 0-15 by calling Gx3748DigitizerSetSource() API.
The following example sets the digitizer’s samples period to 4uSec and returns the set value (see Gx3748DigitizerReadWaveform() API for complete example code):
SHORT nHandle, nStatus;
SHORT nSamplesPeriod;
Gx3748DigitizerGetSamplesPeriod (nHandle, GX3748_DIGITIZER_SAMPLE_PERIOD_4USEC, &nStatus);
Gx3748DigitizerGetSamplesPeriod (nHandle, &nSamplesPeriod, &nStatus);
Gx3748DigitizerArm, Gx3748DigitizerGetGroupStatus, Gx3748DigitizerGetStatus, Gx3748DigitizerHalt, Gx3748DigitizerReadSampleCount, Gx3748DigitizerReadTriggerTimestamp, Gx3748DigitizerReadWaveform, Gx3748DigitizerReset, Gx3748DigitizerSetSamplesCount, Gx3748DigitizerSetSamplesPeriod, Gx3748DigitizerGetSamplesPeriod, Gx3748DigitizerSetSource, Gx3748DigitizerSetTriggerMode, Gx3748DigitizerSetTriggerThreshold, Gx3748DigitizerSoftwareTrigger, GxFpgaGetErrorString