w w w . u q d e v i c e s . c o m
L o g i c 1 6 U s e r M a n u a l
| 37
4.3.2
C++ Setup
A C++ interface is available for Windows as well as Linux. The Windows interface is compiles
using Microsoft Visual Studio 2013. The files are contained in the folder “CTimeTag”.
File
Description
include\CTimeTag.h
General header file
include\CLogic.h
Header file for Logic special functions
Win32\CTimeTagLib.lib
Win32\CTimeTagLibDebug.lib
Windows 32 bit
Win64\CTimeTagLib.lib
Win64\CTimeTagLibDebug.lib
Windows 64 bit
Linux\libtimetag32.so
Linux 32 bit
Linux\libtimetag64.so
Linux 64 bit
Simple C++ Program
#include <stdio.h>
#include <stdlib.h>
#include "../CTimeTag/Include/CTimeTag.h"
#include "../CTimeTag/Include/CLogic.h"
using namespace TimeTag;
CTimeTag timetag;
timetag.Open(1);
//Open device No 1
timetag.Calibrate();
timetag.StartTimetags();
//Start measurement
unsigned
char
*chan;
long
long
*time;
int
count= timetag.ReadTags(chan, time);
timetag.StopTimetags();
timetag.Close();
On error conditions, an exception of type
TimeTag::Exception is thrown.