![Teledyne SP Devices ADQ7DC Manual Download Page 44](http://html1.mh-extra.com/html/teledyne-sp-devices/adq7dc/adq7dc_manual_1081091044.webp)
19-2233 PC2
2019-02-01
44(50)
ADQ7DC Manual
16-1796 PC2 2019-02-01
44(50)
7.4.3
Transfer buffers
The data transfer buffers are the kernel buffers in
and
. These buffers are used by
the DMA and the ADQAPI to transfer the data from the ADQ digitizer to the host PC.
The transfer buffers are owned and managed by the ADQAPI, but the user sets the size and number of
buffers with the command
SetTransferBuffers
.
7.4.4
User’s buffers
The user’s buffers in
are allocated and managed by the user. The ADQAPI
recreates the data record and puts the result in these buffers.
Create the buffers using
malloc
. Then provide the pointers of these buffers to the ADQAPI through the
commands
GetDataStreaming
(for triggered streaming
) or
GetDataWHTS
(for multi-record
The user’s buffers consist of two sets of buffers; one for header information and one for data. The
header is always 40 bytes per record and the content is described in
. The data buffer size
is depending on the amount of data in each record. For FWDAQ, the record size is always constant and
the buffer size can be set to match the record size. For FWPD, the record length may vary between
records. The data buffer size cannot be matched to the data. The example code in ADQAPI_example
1
illustrate how to handle data buffers in general.
7.5 Users application software consuming data
The users application can consume the data in different ways. Some examples are in
. The
component “disk” is used for illustrating the end point for the data. It may also be a display or some
other device such as an alarm.
Figure 36: Timing of user-scheduled data transfer.
1. The ADQAPI_example is found in the folder installation of the digitizer software.
"
/
0
*
0
1
2
34
'
"
*
0
34
"
"
)
5
1
34
(
3
6
4
'
"
/
0
*
0
1
2
34
'
"
*
0
34
'
""
)
5
1
34
'
3
4
$
7
'*
'*$
'*7
'*