예제 #1
0
        /// <summary>
        /// Sets camera to either "video" mode - continuously deliver frames to PC or
        /// "external trigger" mode - camera waits for external trigger to capture 1 frame
        /// </summary>
        /// <param name="mode"></param>
        public void SetCameraWorkMode(CAM_WORKMODE mode)
        {
            int WorkMode = (int)mode;

            if (SSClassicSetCameraWorkMode(_deviceID, WorkMode) < 0) // We take the first camera as example here.
            {
                MessageBox.Show("Error trying to set camera work mode.", _camError, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #2
0
 /// <summary>
 /// Sets camera to either "video" mode - continuously deliver frames to PC or
 /// "external trigger" mode - camera waits for external trigger to capture 1 frame
 /// </summary>
 /// <param name="mode"></param>
 public void SetCameraWorkMode(CAM_WORKMODE mode)
 {
     int WorkMode = (int)mode;
     if (CCDSetCameraWorkMode(_deviceID, WorkMode) < 0) // We take the first camera as example here.
     {
         MessageBox.Show("Error trying to set camera work mode.", _camError, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }