![qutools quTAU Скачать руководство пользователя страница 28](http://html1.mh-extra.com/html/qutools/qutau/qutau_manual_3793622028.webp)
10
TIME STAMPING
Table 7:
Examples: Writing Timestamps to File
LabView Example
-
C Example
/userlib/src/example4.c
When loading saved timestamps for evaluation purposes with
TDC readTimestamps
(from
file) or
TDC inputTimestamps
(from an array) it might be desirable to disable the device
inputs with
TDC enableTdcInput
.
Usage examples are also available in the
src
folder as
example4.c
.
Functions relevant for Time Stamp File Handling:
tdcbase.h:
int
TDC getDataLost
(Bln32
∗
lost)
int
TDC setTimestampBufferSize
(Int32 size)
int
TDC getTimestampBufferSize
(Int32
∗
size)
int
TDC enableTdcInput
(Bln32 enable)
int
TDC getLastTimestamps
(Bln32
reset,
Int64
∗
timestamps,
Int8
∗
channels, Int32
∗
valid)
int
TDC writeTimestamps
(const char
∗
filename, TDC FileFormat format)
int
TDC inputTimestamps
(const Int64
∗
timestamps, const Int8
∗
channels,
Int32 count)
int
TDC readTimestamps
(const char
∗
filename, TDC FileFormat format)
10.4
Retrieving Timestamps as an Array
Table 8:
Examples: Retrieving Timestamps as an array
LabView Example
/userlib/labviewXX/examples/timestamparray.vi
C Example
/userlib/src/example1.c
Alternatively, the timestamps can be retrieved as an array. An additional array with
the same size contains the corresponding channel information. For this purpose, the time
stamp buffer (set size with
TDC setTimestampBufferSize
) is read using
TDC getLastTimestamps
.
The details are shown in Figure
Usage examples are also available in the
src
folder as
example1.c
.
Functions relevant for Time Stamp File Handling:
tdcbase.h:
int
TDC getDataLost
(Bln32
∗
lost)
int
TDC setTimestampBufferSize
(Int32 size)
int
TDC getTimestampBufferSize
(Int32
∗
size)
int
TDC enableTdcInput
(Bln32 enable)
int
TDC getLastTimestamps
(Bln32
reset,
Int64
∗
timestamps,
Int8
∗
channels, Int32
∗
valid)
quTAU/quPSI Manual V4.0 Page 28