标签:false sync 设置 frame 需要 original external syn sys
HOperatorSet.SetFramegrabberParam(camera_acq_handle, "grab_timeout", -1); 超时设置 无穷
HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "external_trigger", "true");
刚开始采集图像,需要设置外触发
HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "external_trigger", "false");
软件关闭前设置,需要关闭外触发,相机才能正常退出来
相机初始化
HOperatorSet.OpenFramegrabber("SaperaLT", 1, 1, 0, 0, 0, 0, "default", 8, "default", -1, "true",
"./SysFile/Camera1.ccf", "Xtium-CL_MX4_1", -1, -1, out camera_para_1.camera_acq_handle);
HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "external_trigger", "true");
开始采集图像循环
HOperatorSet.SetFramegrabberParam(camera_para_1.camera_acq_handle, "grab_timeout", -1);
HOperatorSet.GrabImageStart(camera_para_1.camera_acq_handle, -1);
HOperatorSet.GrabImageAsync(out SmallOriginalImage, camera_para_1.camera_acq_handle, -1);
软件关闭
HOperatorSet.SetFramegrabberParam(camera_acq_handle, "external_trigger", "false");
HOperatorSet.CloseFramegrabber(camera_para_1.camera_acq_handle);
halcon相机拍照设置
标签:false sync 设置 frame 需要 original external syn sys
原文地址:https://www.cnblogs.com/QuincyYi/p/12636142.html