User Manual of Machine Vision Camera SDK Demo (VC6.0)
Chapter 3ReconnectDemo
The ReconnectDemo mainly introduces the operations of disconnected camera reconnection in the SDK.
The following sample program describes the process of disconnection callback and camera reconnection
method.
3.1 Interface Overview
The ReconnectDemo based on C++ language for machine vision camera can realize the function of device
search, device control, image acquisition and configuration trigger.
3.2 Operation Procedure
The operation procedure of ReconnectDemo is similar with that of BasicDemo, please refer to Chapter 2.2
Operation Procedure for details.
When the camera is disconnected, there will be callback exception, and the ReconnectDemo will attempt to
connect the camera according to the selected camera information. And the online cameras will be connected.
3.3 Programming Guideline
The programming guidance of Reconnection Demo is similar with that of BasicDemo, please refer to Chapter
2.3 Programming Guidance for details. Here we introduce the application method of callback function.
For C++ language, you should realize the callback function via transmitting function pointer. So the
exceptional disconnection callback is RegisterExceptionCallBack in the machine vision camera SDK (C++).
Steps:
5
    "