![Teledyne SP Devices ADQ7 User Manual Download Page 7](http://html1.mh-extra.com/html/teledyne-sp-devices/adq7/adq7_user-manual_1081089007.webp)
Classification
Revision
Public
PA1
Document ID
Print date
19-2241
2019-05-02
4
Setting up an Application
This section outlines the general steps for setting up P2P GPU streaming. Detailed information is given
where deemed necessary. It is recommended to study example files
main.c
which shows all the listed
steps and
gpu_streaming_defines.h
which contains macros for calculating buffer sizes, data access,
and settings. Information about ADQ functions is found in the ADQAPI reference guide [
•
Choose parameters
•
Decide if B-scan and data valid buffers should be used
•
Initialize GPU driver
•
Allocate and pin buffers in GPU
•
Initialize ADQ
•
Set up triggers
•
Set up P2P GPU with
SetupDMAP2p2D()
•
Start streaming
•
Wait for a completed buffer
•
Detect and handle overflows
•
Process received data and reset the data valid buffer
•
Stop streaming
•
User logic 2 considerations
4.1
Choosing Parameters
Streaming parameters should be chosen to at least satisfy required conditions. N is an integer
2
≤
N
≤
2
22
and Ch is the number of channels used: 1 or 2.
1.
Record length = N
×
32 / Ch, required
2.
A-scans per B-scan
≥
2
, required
3.
Samples per B-scan
≤
2
31
, required
4.
1
≤
B-scans per buffer
≤
2
12
, required
5.
Samples per buffer
≤
2
33
, required
6.
N/2
×
Records per buffer = Integer, recommended
ADQ7 GPU Peer-To-Peer – User Guide
Page 6 of 11