示例#1
0
        /// <summary>
        /// 设置相机在软触发模式
        /// </summary>
        void SetSoftTrriger(bool blOpen)
        {
            try
            {
#if (SDK)
                //开启触发模式
                TriggerMode triggermode;
                triggermode           = g_ManagedCameraBase.GetTriggerMode();
                triggermode.onOff     = blOpen;
                triggermode.mode      = 0;
                triggermode.parameter = 0;
                triggermode.source    = 7;
                g_ManagedCameraBase.SetTriggerMode(triggermode);
#endif
            }
            catch (Exception ex)
            {
                Log.L_I.WriteError(NameClass, ex);
            }
        }