GenICam_SDK.docx
14
csiOpenDevice
Open the device given by the index. The TL of this index is used
Syntax
csiErr csiOpenDevice(const char* deviceIdentifier, csiHandle* deviceHandleOut, uint64_t timeoutMilliseconds,
csiDeviceAccessMode openMode)
Parameters:
In:
deviceIdentifier
Index of the found device from the
function
timeoutMilliseconds
Timeout in milliseconds until the device needs to be opened successfully
openMode
The device can be opened in different modes to enable/hinder concurrent access to
the device.
The following modes might be used:
CSI_DEV_MODE_EXCLUSIVE: Only this process can communicate with the camera
CSI_DEV_MODE_READ: Camera-parameters can be read and images can be
acquired
CSI_DEV_MODE_CONTROL: Camera-parameters can be read and written. Read-
access by another process to the device is still possible
Out:
deviceHandleOut: Handle to the device. This handle needs to be used to any successive call.
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment:
Depending on the used transport layer it might be necessary to use a longer timeout. Please refer to the information provided
with the specific TL.
csiCloseDevice
Close the connection to the specific device
Syntax
csiErr csiCloseDevice(csiHandle device
Parameters:
In: device:
Handle provided by the
-function
Out:
Return value:
Returns csiSuccess or an error defined in the csiErr-Enum.
Comment:
To grant access to the device for other applications, the connection should be closed when it is not needed anymore.
The API will cleanup no longer needed memory when this command is executed.