OpenCamera

OpenCamera 1:

Open a control channel to the camera.

Syntax

Definition:

METHOD OpenCamera : HRESULT

OpenCamera 2: Return value

HRESULT

Further information

The method OpenCamera opens a communication channel to the camera. In the corresponding OPENED state, camera registers can be read and written, images can be acquired and continuous image recording can be started.

If the InitializationAutoMode is set to AUTOINIT_AFTER_SO in the TcCOM parameters of the Image Acquisition object, the GigE Vision camera is initialized the first time the method OpenCamera is called. Among others, this includes the writing of the Initialization Commands or the setting of the UserSets. Alternatively, the InitializeCamera method can be called in order to perform the initialization manually.

State transitions

With OpenCamera, the camera is to be placed in the OPENED state. This can take place from the INITIAL and INITIALIZED states. As a rule, this transition takes place via the intermediate state OPENING.

OpenCamera 3:
State transitions with FB_VN_GevCameraControl.OpenCamera

All possible state transitions and their return codes are shown in the following transition matrix:

Return Codes (HRESULT)

Result state

INITIAL

INITIALIZED

OPENING

OPENED

ERROR

Initial state

INITIAL

BUSY

-

PENDING

SUCCESS

FAILED

INITIALIZED

-

BUSY

OPENING

-

BUSY