The examples show how oscilloscopes and generators can be controlled using libtiepie-hw in C++.
Contents
Downloads
Description | Version | Remarks | Size | |
---|---|---|---|---|
libtiepie-hw C++ examples | 1.1.6 | for GNU Make and Visual Studio | 50.56 kB | download |
C and C++ headers are included in the libtiepie-hw library downloads.
Requirements
Building the examples
The examples are tested to work with the following C++ compilers:
Microsoft Visual C++
The libtiepie.dll file must be located in the subfolder LibTiePie/x86-64 in the main folder of the examples. The corresponding header files libtiepie-hw.h and libtiepie-hw.hpp must be located in the LibTiePie subfolder in the main folder of the examples.
The examples can be built by opening and building the solution file LibTiePie_Cpp_examples.sln in the main folder of the examples.
Creating a .lib file
Microsoft Visual C++ requires a .lib file to be able to use the libtiepie-hw library. This .lib file is compiler and platform dependent and is therefore not supplied with the libtiepie-hw library. Microsoft does supply a utility with Visual Studio to create the .lib file, this utility requires a .def file, which is supplied with LibTiePie.
For the examples on this page, the supplied make file contains instructions to create the required .lib file automatically. For that, the .def file must be placed in the same location as the libtiepie.dll file. When developing software not based on these examples, the .lib file will have to be created independently.
To create a .lib file for the libtiepie-hw library, the following steps need to be executed:
- Open the Visual Studio Command Prompt, its shortcut is found in
-
Type lib /def:"C:\mypath\libtiepie.def" /machine:X64 /OUT:"C:\mypath\libtiepie.lib"
- mypath is the path where the libtiepie.def file is located.
GNU C++
Windows
The libtiepie.dll file must be located in the subfolder LibTiePie/x86-64 in the main folder of the examples. The corresponding header files libtiepie-hw.h and libtiepiehw.hpp must be located in the LibTiePie subfolder in the main folder of the examples.
The examples can be built by executing mingw32-make in the main folder of the examples.
Linux
The libtiepie-hw library must be installed in the system folder.
The examples can be built by executing make in the main folder of the examples.
Examples
List of available example programs: