
Timestamps
Combination of Memory Segmentation Options with Timestamps
(c) Spectrum Instrumentation GmbH
167
ABA Mode and Timestamps
The ABA mode is well matching with the timestamp option. If timestamp
recording is activated, each trigger event and therefore each B time base
segment will get time tamped as shown in the drawing on the right.
Please keep in mind that the trigger events - located in the B area - are time
tamped, not the beginning of the acquisition. The first B sample that is
available is at the time position of [Timestamp - Pretrigger].
The first A area sample is related to the card start and therefore in a fixed
but various settings dependent relation to the timestamped B sample. To
bring exact relation between the first A area sample (and therefore all
area A samples) and the B area samples it is possible to let the card stamp
the first A area sample automatically after the card start. The following ta
-
ble shows the register to enable this mode:
This mode is compatible with all existing timestamp modes. Please keep in mind that the timestamp counter is running with the B area time
-
base.
The programming details of the ABA mode and timestamp modes are each explained in an dedicated chapter in this manual.
Table 99: Spectrum API: timestamp command register and ABA mode settings
Register
Value
Direction
Description
SPC_TIMESTAMP_CMD
47000
read/write
Programs a timestamp setup including mode and additional features
SPC_TSFEAT_MASK
F0000h
Mask for the feature relating bits of the SPC_TIMESTAMP_CMD bitmask.
SPC_TSFEAT_STORE1STABA
10000h
Enables storage of one additional timestamp for the first A area sample (B time base related) in addition to the trigger
related timestamps.
SPC_TSFEAT_NONE
0h
No additional timestamp is created. The total number of stamps is only trigger related.
// normal timestamp setup (e.g. setting timestamp mode to standard using internal clocking)
uint32 dwTimestampMode = (SPC_TSMODE_STANDARD | SPC_TSMODE_DISABLE);
// additionally enable index of the first A area sample
dwTimestampMode |= SPC_TSFEAT_STORE1STABA;
spcm_dwSetParam_i32 (hDrv, SPC_TIMESTAMP_CMD, dwTimestampMode);
Image 78: Drawing of ABA mode
Содержание M2p.59 Series
Страница 190: ......