Industrial Cameras FAQ/How can application program di...
How can application program distinguish each camera in a system that uses multiple cameras.(No.219)
The following two methods are usually used for distinguishing cameras.
A) Checking model name and serial number of a camera.
Application software can get model name and serial number from CAM_INFO structure. Please use Cam_GetInformation() to get CAM_INFO structure.
In case of .NET Framework language, use CameraInfo class object acquired with CameraSystm.GetCameraInformation() or CameraDevice.GetInformation() method to get model name and serial number.
B)Checking UserDefinedName register value.
User application can distinguish cameras using unique strings (UserDefinedName) read out with GetCamUserDefinedName() function. Users shoukd write string unique to each camera beforehand using SetCamUserDefinedName() function.
Application software can select camera properly by checking UserDefinedName even if some cameras are replaced to new ones. (Users should write UserDefinedName in removed cameras to new cameras on replacing cameras, of cource.)
Refer to FAQ items "Please show how to open camera specifying camera model name and serial number."and "Please show how to open camera specifying UserDefinedName."
A) Checking model name and serial number of a camera.
Application software can get model name and serial number from CAM_INFO structure. Please use Cam_GetInformation() to get CAM_INFO structure.
In case of .NET Framework language, use CameraInfo class object acquired with CameraSystm.GetCameraInformation() or CameraDevice.GetInformation() method to get model name and serial number.
B)Checking UserDefinedName register value.
User application can distinguish cameras using unique strings (UserDefinedName) read out with GetCamUserDefinedName() function. Users shoukd write string unique to each camera beforehand using SetCamUserDefinedName() function.
Application software can select camera properly by checking UserDefinedName even if some cameras are replaced to new ones. (Users should write UserDefinedName in removed cameras to new cameras on replacing cameras, of cource.)
Refer to FAQ items "Please show how to open camera specifying camera model name and serial number."and "Please show how to open camera specifying UserDefinedName."