User manual

Programmer’s Guide Page 41 of 64
Peak region block 8 points
31..24 (8 bits)
23..16 (8 bits)
15..8 (8 bits)
7..0 (8 bits)
Flag 00010010
0x00
Valid Left
Valid Right
31..0 (32 bits)
Peak Position (= tmax)
31..24 (8 bits)
23..16 (8 bits)
15..8 (8 bits)
7..0 (8 bits)
Sample(tmax)
Sample(tmax-1)
Sample(tmax-2)
Sample(tmax-3)
Sample(tmax+4)
Sample(tmax+3)
Sample(tmax+2)
Sample(tmax+1)
Peak region block 16 points
31..24 (8 bits)
23..16 (8 bits)
15..8 (8 bits)
7..0 (8 bits)
Flag 00010001
0x00
Valid Left
Valid Right
31..0 (32 bits)
Peak Position (= tmax)
31..24 (8 bits)
23..16 (8 bits)
15..8 (8 bits)
7..0 (8 bits)
Sample(tmax-4)
Sample(tmax-5)
Sample(tmax-6)
Sample(tmax-7)
Sample(tmax)
Sample(tmax-1)
Sample(tmax-2)
Sample(tmax-3)
Sample(tmax+4)
Sample(tmax+3)
Sample(tmax+2)
Sample(tmax+1)
Sample(tmax+8)
Sample(tmax+7)
Sample(tmax+6)
Sample(tmax+5)
The peak position is counted relative to the beginning of the first segment of the acquisition. Thus the position also
gives the segment number of the peak.
The sample data value is the raw data value.
Valid Left and Valid Right give the number of valid data points < tmax and > tmax respectively. Sample(tmax-
validLeft) and Sample(tmax+validRight) are the first and last valid points, respectively.
If you need to know the segment time stamps you can read the gated data. If the user or threshold gate parameters are
set appropriately the amount of unwanted data can be minimized.
3.11.8.3. Reading the peaks
The results for all of the peaks in the current event can be read out using readMode = 4 (ReadModePeak).
The waveform descriptor structure contains the value actualDataSize giving the total number of data bytes read.
There may be a variable number of blocks of data with the following format:
Peak block
31..24 (8 bits)
23
19..4 (16 bits)
3..0 (4 bits)
Flag 00010000
(0x10)
Unused Peak amplitude with ADC resolution
Interpolated fractional part of
amplitude (1/16 LSB)
29..4 (26 bits)
3..0 (4 bits)
Peak Position with sample rate resolution
Interpolated fractional part of
position (1/16 sample interval)
The peak position is counted relative to the beginning of the first segment of the acquisition. Thus the position also
gives the segment number of the peak.
The peak amplitude is the value acquired after baseline subtraction.
When reading such data you should carefully check that you terminate correctly and do not read beyond the end of
the transmitted data nor generate unphysical time coordinates for the data.
If you need to know the segment time stamps you can read the gated data. If the user or threshold gate parameters are
set appropriately the amount of unwanted data can be minimized.