Beispiel #1
0
        private void frmMonitorCam_Load(object sender, EventArgs e)
        {
            try
            {
                // Start up Vimba SDK
                VimbaHelper vimbaHelper = new VimbaHelper();
                vimbaHelper.Startup(this.OnCameraListChanged);
                m_VimbaHelper = vimbaHelper;

                //Text = String.Format("{0} (Vimba Version V{1})", Text, m_VimbaHelper.GetVersion());
                try
                {
                    UpdateCameraList();
                    UpdateControls();
                }
                catch (Exception exception)
                {
                    textBox1.Text += "\n" + "Could not update camera list. Reason: " + exception.Message;
                }
            }
            catch (Exception exception)
            {
                textBox1.Text += "\n" + "Could not startup Vimba API. Reason: " + exception.Message;
            }


            LampComm.Open(DeviceManager.LightingComPort);

            // 조명
            // ----------
            for (int i = 0; i < 4; i++)
            {
                cboLampList.Items.Add(DataManager.LightingSettingInfoList[i].Name);
            }



            // 동작 기능 선택
            // ----------
            cboLampList.SelectedIndex = _WorkFuncInfo.Lamp_Index;
        }
Beispiel #2
0
        public void Initialize()
        {
            // 1. Lighting 기능
            // ----------
            for (int i = 0; i < 10; i++)
            {
                cboLightingName.Items.Add(DataManager.LightingSettingInfoList[i].Name);
            }

            cboLightingName.SelectedIndex = _WorkFuncInfo.WFLampChannel;


            // 2. 설정값
            // ----------
            this.txtLightingValue.Text = _WorkFuncInfo.WFLampValue.ToString();



            // 3. 강성호
            // ----------
            LampComm.Open(DeviceManager.LightingComPort);
        }