Specifications
sharpVISION™ Camera
sharpVISION™ VISION SDK
91
7.2.4. IdtSvOpenCamera
[nResult, nCameraId] = SharpML (‘IdtSvOpenCamera’, nInputId)
Inputs
nInputId
Specifies the ID of the camera to be opened, or 0 for the first available camera
Outputs
nResult
Specifies the return error code of the function (0 if the function is successful, otherwise not 0)
nCameraId
Specifies the ID of the opened camera
Remarks
The routine opens the camera whose ID is in the variable nInputId. The value can be
retrieved calling the IdtSvEnumCameras enumeration function. The user may supply a
specific camera ID or 0: in this case the first available camera is opened. If any error occurs
during the camera opening, the routine returns an error code in the nResult variable,
otherwise it returns 0. The function also returns the camera Id.
See also: IdtSvCloseCamera