EDT PDV SDK Documentation 6.1.0
|
Modules | |
Startup / Shutdown | |
Settings | |
Initialization | |
Acquisition | |
Communications/Control | |
Utility | |
Debug | |
The PDV digital imaging library (pdvlib) provides a C language interface to the PDV device driver, including routines for image capture, save, and device control.
The library is designed for use with all EDT Digital Imaging boards, including the VisionLink series, PCIe and PCI DV, DVa and DV series Camera Link and legacy AIA interfaces, and PMC and Compact PCI variants. The library also has components to support the Camera Link simulator boards including the PCI DV CLS, PCIe8 DV CLS and PCIe8 DVa CLS.
The PDV library sits on top of the lower-level EDT DMA Library (edtlib). Library functions from both libraries operate on the same device handle, and routines from both libraries can be used in the same application. However pdvlib (pdv_
) subroutines are designed to handle the extra bookkeeping, error-recovery, triggering and timing functionality that is present on EDT Digital Imaging boards. Therefore direct calls to edtlib (edt_
) subroutines should only be made when they provide functionality that is not present in an equivalent or similar pdvlib call. Most notable are the DMA image capture subroutines – pdvlib DMA should always be used (e.g. pdv_multibuf(), pdv_start_images(), pdv_wait_images()), rather than calling the lower-level edtlib DMA subroutines directly (e.g. edt_configure_ring_buffers(), edt_start_buffers(), edt_wait_for_buffers().) However this restriction does not apply to the EDT Message Handler Library.
All routines access a specific device whose handle is created and returned by the pdv_open() or pdv_open_channel() routine. PDV applications typically include the following elements:
"pdv"
in edtdef.h.)To compile the library as a shared (.so) library on Linux, the following steps are necessary:
See the makefile and example programs provided in the install directory for examples of compiling code using the digital imaging library routines. Windows packages include a Visual Studio (8) solution and project files in install_dir\projects.vs2008
.
Suggested starting points for acquisition are the simple_take.c, simplest_take.c and other simple_*.c example programs. For serial communication, see serial_cmd.c, a command line serial utility. Other simple_*.c example programs are provided to show specialized functionality.
The PdvDev device status structure is defined in the file libpdv.h. It includes the PdvDependent substructure, and other structure elements that describe the state of the board and camera, as initialized by the current camera configuration file (see the Camera Configuration Guide) or modified by any subsequent API setup calls. These structure elements include values for things such as the current pixel re-order or color interpolation method, size and depth of the image, number and size of currently allocated buffers. To ensure compatibility with future versions of the library, programmers should always use the library calls for getting / setting any library values, and refrain from referencing the structure elements directly. Additionally, anything that can be queried via the subroutine calls such as currently set image width, height and depth should be done via subroutine calls rather than hard-coding specific values.
The PDV library source files are included in the installation. Most but not all routines are documented here. Undocumented routines include internals, custom, special purpose and obsoletes. Feel free, however, to look through the library source code and use (with caution) any routines that are appropriate. Email tech@.nosp@m.edt..nosp@m.com if you have questions about specific routines.
Routines are divided into the following modules. You can use the Search button at the top of this page (in the HTML version of this doc) to search for specific library routines.