Linux
Supported distributions
CentOS 8
Ubuntu 18.04 LTS
Ubuntu 20.04 LTS
will be discontinued within 2021
CentOS 7
Ubuntu 16.04 LTS
Installation
Download and install the package for your linux distribution from the Time Tagger downloads page https://www.swabianinstruments.com/time-tagger/downloads/.
The package installs the Python and C++ libraries for amd64 systems including example programs.
- Graphical user interface (web application):
Launch via
timetagger
from the console or from the application launcher.
Known issues
In case you have installed a previous version of the Time Tagger software, please reset the cache of your browser.
Closing the web application server may cause an error message to appear.
Time Tagger with Python
Supported Python versions are 2.7, 3.5, 3.6, 3.7, 3.8, 3.9.
Install NumPy (e.g.
pip install numpy
), which is required for the Time Tagger libraries.The Python libraries are installed in your default Python search path:
/usr/lib/pythonX.Y/dist-packages/
or/usr/lib64/pythonX.Y/site-packages/
.The examples can be found within the
/usr/lib/timetagger/examples/python/
folder.
Time Tagger with C++
The examples can be found within the
/usr/lib/timetagger/examples/cpp/
folder.The header files can be found within the
/usr/include/timetagger/
folder (-I /usr/include/timetagger
).The assembly shall be linked with
/usr/lib/libTimeTagger.so
(-l TimeTagger
).
General remark
Please contact us in case you have any questions or comments about the Ubuntu or CentOS package and/or the API for the Time Tagger.
The C++ interface will likely also work on other distributions out of the box.
The source of the Python wrapper _TimeTagger.cxx
is provided in /usr/lib64/pythonX.Y/site-packages/
.
For building the wrapper, the GNU C++ compiler and the development headers of Python and numpy need to be installed.
The resulting _TimeTagger.so
and the high-level wrapper TimeTagger.py
relay the Time Tagger C++ interface to Python.
PYTHON_FLAGS="`python3-config --includes --libs`"
NUMPY_FLAGS="-I`python3 -c \"print(__import__('numpy').get_include())\"`"
TTFLAGS="-I/usr/include/timetagger -lTimeTagger"
CFLAGS="-std=c++11 -O2 -DNDEBUG -fPIC $PYTHON_FLAGS $NUMPY_FLAGS $TTFLAGS"
g++ -shared _TimeTagger.cxx $CFLAGS -o _TimeTagger.so