User manual

Programmer’s Guide Page 27 of 64
3.6.4.3. Gate Data
Each gate header is followed by gateLength samples of acquisition data. i.e. the next Gate Descriptor can be found
by, next Gate Descriptorr = current header position + gateLength +2. The data is in 8-bit digitized raw unsigned
format.
Word
[31..24]
[23..16]
[15..8]
[7..0]
1
Sample 4
Sample 3
Sample 2
Sample 1
2
Sample 8
Sample 7
Sample 6
Sample 5
3
Sample 12
Sample 11
Sample 10
Sample 9
4
Sample 16
Sample 15
Sample 14
Sample 13
Etc..
3.7. Configuring AP family Peak
TDC
Analyzers
Since Peak
TDC
processing can be viewed as an additional form of processing after SSR acquisition please refer to the
discussion in 3.5 Configuring SSR Analyzers for that part of process. In addition you will have to
// Configure peak detection
long numberOfTriggersPerSeg = 50, numberOfSegments = 1;
double startDelta=0.1,validDelta = 0.2;
AcqrsD1_configMode(
instrID, 5, 0, 0);
AcqrsD1_configAvgConfig(
instrID, 0, "NbrRoundRobins", &numberOfTriggersPerSeg);
AcqrsD1_configAvgConfig(instrID, 0, "NbrSegments", &numberOfSegments);
AcqrsD1_configAvgConfig(
instrID, 0, "StartDeltaPosPeakV", &startDelta);
AcqrsD1_configAvgConfig(instrID, 0, "ValidDeltaPosPeakV", &validDelta);
// Configure histogram
long tdcMode = 1, tdcDepth = 1, tdcIncr = 2, tdcType = 1;
AcqrsD1_configAvgConfig(
instrID, 0, "TdcHistogramMode", &tdcMode);
AcqrsD1_configAvgConfig(
instrID, 0, "TdcHistogramDepth", &tdcDepth);
AcqrsD1_configAvgConfig(instrID, 0, "TdcHistogramIncrement", &tdcIncr);
AcqrsD1_configAvgConfig(
instrID, 0, "TdcProcessType", &tdcType);
// if the acquisition has segments to be histogrammed independently
long tdcOverlay = 0;
AcqrsD1_configAvgConfig(
instrID, 0, "TdcOverlaySegments", &tdcOverlay);
3.8. Configuring U1084A Peak
TDC
Analyzers
In addition to the normal Digitizer setup, such as the trigger setup and full scale, you should configure the following
settings when using the U1084A in mode:
// Configure peak detection
ViInt32 numberOfSamplesPerSeg = 4096;
ViInt32 numberOfSegments = 1;
ViInt32 numberOfTriggersPerSeg = 50;
ViReal64 startDelta=0.1,validDelta = 0.2; // Peak slope thresholds in Volts
AcqrsD1_configMode(
instrID, 5, 0, 0);
AcqrsD1_configAvgConfig(instrID, 0, "NbrSamples", &numberOfSamplesPerSeg);
AcqrsD1_configAvgConfig(
instrID, 0, "NbrSegments", &numberOfSegments);
AcqrsD1_configAvgConfig(
instrID, 0, "NbrWaveforms", &numberOfTriggersPerSeg);
AcqrsD1_configAvgConfig(instrID, 0, "StartDeltaPosPeakV", &startDelta);
AcqrsD1_configAvgConfig(
instrID, 0, "ValidDeltaPosPeakV", &validDelta);
If you wish to use peak interpolation, the following additional settings should be configured: