April 2020 2
SICK Vision Suite Programming Manual 1.1
Contents
1 Preface .............................................................................................................................................. 4
2 SICK Vision Suite .............................................................................................................................. 5
2.1 Notes on usage ........................................................................................................................... 5
2.2 Directories under Windows .......................................................................................................... 5
2.3 Directories under Linux ................................................................................................................ 5
3 Creating projects .............................................................................................................................. 7
3.1 CMake ........................................................................................................................................ 7
3.2 Creating a project for Qt Creator with CMake ................................................................................. 7
3.2.1 CMake setup in Qt Creator ................................................................................................ 7
3.2.2 Opening samples .............................................................................................................. 8
3.2.3 Creating your own projects ................................................................................................ 8
3.3 Creating a project for Visual Studio with CMake ............................................................................. 9
3.3.1 Correcting configuration settings ...................................................................................... 11
4 Basic principles ............................................................................................................................... 14
4.1 Error handling with try/catch ....................................................................................................... 14
4.2 Shared pointer (C++) ................................................................................................................. 14
4.3 Descriptors ............................................................................................................................... 14
5 Important classes and functions ..................................................................................................... 16
5.1 Library ...................................................................................................................................... 16
5.1.1 Initialize ......................................................................................................................... 16
5.1.2 Close ............................................................................................................................. 16
5.2 DeviceManager ......................................................................................................................... 16
5.2.1 Update ........................................................................................................................... 17
5.2.2 Update with selected CTI (GenTL) .................................................................................... 17
5.2.3 Opening a camera .......................................................................................................... 18
5.2.4 Further functions of the DeviceManager ........................................................................... 18
5.2.5 Examples for using the DeviceManager ............................................................................ 19
5.3 Device ...................................................................................................................................... 19
5.3.1 Changing settings ........................................................................................................... 19
5.3.1.1 Code example for EnumerationNode .................................................................... 20
5.3.1.2 Code example for FloatNode ............................................................................... 21
5.4 DataStream ............................................................................................................................... 22
5.5 Buffer ....................................................................................................................................... 22
5.6 BufferTo .................................................................................................................................... 22
5.6.1 Examples for using the BufferTo function .......................................................................... 23
© SICK AG • Subject to change without notice • 8025624/0000