Please enable JavaScript to view this site.

IDS peak 2.10.0 / uEye+ firmware 3.34

IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.

Depending on the programming language, you may have to close the camera handle explicitly or the camera is closed automatically if the camera object is no longer referenced.

IDS peak comfortC

In C, you must explicitly close the camera handle.

comfortC

peak_camera_handle hCam = PEAK_INVALID_HANDLE;
peak_Camera_OpenFirstAvailable(&hCam);
peak_Camera_Close(hCam);

IDS peak genericC++

By using shared pointers in C++, the camera is automatically closed when there is no longer a reference to the shared pointer, e.g. when the function structure ends in which the shared pointer was created. Alternatively, the shared pointer can be destroyed directly.

genericC++

auto device = deviceManager.Devices().at(0)->OpenDevice(peak::core::DeviceAccessType::Control);
device.reset();

IDS peak genericC#

In C#, the camera object implements the IDisposable interface of .NET. To close the camera, you must call "Dispose()" on the object. You can either do this manually or call a using statement. The camera object is destroyed at the end of a using statement.

IDS peak genericPython

In Python, you must destroy the reference to the object, either by going out-of-scope or by explicitly overwriting the variable.

genericPython - explicitly overwriting

device = device_manager.Devices()[0].OpenDevice(ids_peak.DeviceAccessType_Control)
device = None

© 2024 IDS Imaging Development Systems GmbH