IMAQdxEnumerateCamerasCW
Format
IMAQdxEnumerateCamerasCW (cameraInformationArray() As IMAQdxCameraInformation, connectedOnly As VARIANT_BOOL) As IMAQdxError
Purpose
Returns a list of all cameras on the host computer.
Parameters
Parameter | Type | Description |
cameraInformationArray | IMAQdxCameraInformation [] | An array of IMAQdxCameraInformation structure elements in which the interfaces supported by the system are stored. |
connectedOnly | VARIANT_BOOL | If the connectedOnly value is true, then the cameraInformationArray only contains cameras that are currently connected to the host computer. If the connectedOnly value is false, then the cameraInformationArray contains cameras that are currently connected, and were previously connected, to the host computer. |
Parameter Discussion
The IMAQdxCameraInformation structure contains information about currently and previously connected interfaces. Once enumerated, check the Flags member of the IMAQdxCameraInformation structure. If the value of Flags is 0, the camera is not currently connected. If the value of Flags is 1, the camera is currently connected.
Return Value
On success, this function returns IMAQdxErrorSuccess. On failure, this function returns an error code. You can obtain a more detailed error message with IMAQdxGetErrorStringCW.