![qutools quTAU Скачать руководство пользователя страница 14](http://html1.mh-extra.com/html/qutools/qutau/qutau_manual_3793622014.webp)
7
SOFTWARE
7.5
Using the quTAU with your own software (Library func-
tions)
In order to enable customers to write their own software for using the time-to-digital
converter quTAU, qutools GmbH provides a DLL containing all functions needed to com-
municate with the device. For use with LabVIEW
TM
, a wrapper VI is provided for each
of these functions (
userlib/labviewXX/lowlevelvis
). Please note that the name of the
VI is equal to the DLL function name. Examples in C (
userlib/src
) and LabVIEW
TM
(
userlib/labviewXX/examples
) show how parts of a program might look like.
7.5.1
The qutools
tdcbase.dll
DLL/lib
The DLL
tdcbase.dll
is provided by qutools GmbH to enable customers to use the time
to digital converter quTAU in their own software projects. It is available for MS Windows
as well as for Linux and in versions for 32 bit and 64 bit architectures. You can download
the latest version from the qutools homepage. It is also used by both the LabVIEW
TM
application and the command line interface, see above.
A complete list of all functions the DLL provides and information about how to call these
functions is included as doxygen generated documentation in
userlib/doc/index.html
.
Additionally, there will be examples of how to combine the functions to achieve a certain
task. To visualize this, simplified LabVIEW
TM
block diagrams will be used. Please
remember that the (shown) names of the used VIs are equal to the DLL function names.
7.5.2
LabVIEW
TM
Integration
For integration of the quTAU in LabVIEW
TM
using the DLL, wrapper VIs are provided
at
/userlib/labviewXX/lowlevelvis/
. Each of these low level VIs can be used to call
the respective DLL function. When using the low level VIs, the following facts are helpful
to know:
1. The DLL file
tdcbase.dll
must be found by the LabVIEW
TM
program. For this
purpose, the first DLL call triggers a search for the DLL file. It is expected in the
application directory or any of its parents. Additionally, it can be placed in a sub
folder
lib
,
lib32
or
lib64
. If the DLL is not found, the user is prompted to provide
the path. In order to avoid this prompt, please place the DLL as described.
2. All low level VIs have error in- and outputs. This is convenient to determine their
temporal sequence by wiring the error line from one to the next. It is important to
understand that the VIs are designed to do nothing in case they are called already
with an error. The error output contains the return code as well as the corresponding
error message.
quTAU/quPSI Manual V4.0 Page 14