Esempio n. 1
0
        private void ReadData()
        {
            int nType = cmbType.SelectedIndex;

            if (m_strLoc == "")
            {
                lblTypeName.Text = AVisionProBuild.GetType(nType).Name;
            }
            else
            {
                lblTypeName.Text = AVisionProBuild.GetType(nType).Name + "(" + m_strLoc + ")";
            }

            // 2011.06.23
            txtLowX.Text  = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dX);
            txtLowY.Text  = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dY);
            txtLowZ.Text  = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dZ);
            txtLowAX.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dAX);
            txtLowAY.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dAY);
            txtLowAZ.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dAZ);

            txtHighX.Text  = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dX);
            txtHighY.Text  = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dY);
            txtHighZ.Text  = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dZ);
            txtHighAX.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dAX);
            txtHighAY.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dAY);
            txtHighAZ.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dAZ);
        }
        private void lstvwPoint_Click(object sender, EventArgs e)
        {
            int nIndex = lstvwPoint.FocusedItem.Index;

            grbPoint.Text = lstvwPoint.Items[nIndex].SubItems[1].Text;

            txtPoint.Text = lstvwPoint.Items[nIndex].Text;
            txtName.Text  = lstvwPoint.Items[nIndex].SubItems[1].Text;
            string strTempSN = lstvwPoint.Items[nIndex].SubItems[2].Text;
            int    nPos      = strTempSN.IndexOf('_');

            if (nPos >= 0)
            {
                strTempSN = strTempSN.Substring(0, nPos);
            }
            // Serial Number
            txtSerialNumber.Text = strTempSN;
            // pixel format
            cmbPixelFormat.Text = lstvwPoint.Items[nIndex].SubItems[3].Text;

//#if !_USE_1Camera && !_USE_BASLER_PYLON
            int   nType = cmbType.SelectedIndex;
            AType aType = AVisionProBuild.GetType(nType);

            txtIP.Text = GetCameraIPAddress(aType.GetPoint(nIndex).GetAcq().AcqFifoTool);
//#elif _USE_BASLER_PYLON
//            txtIP.Text = ABaslerPylon.GetDeviceIPAddress(txtSerialNumber.Text);
//#endif
        }
Esempio n. 3
0
        private void lstvwType_Click(object sender, EventArgs e)
        {
            try
            {
                int nType = lstvwType.FocusedItem.Index;
                txtTypeName.Text       = lstvwType.Items[nType].SubItems[0].Text;
                txtPlcToPc.Text        = lstvwType.Items[nType].SubItems[1].Text;
                nmUpDnPointCount.Value = Convert.ToInt32(lstvwType.Items[nType].SubItems[2].Text);

                txtPointName.Text = ""; // 2014.10.24 by kdi
                lstvwPoint.Items.Clear();
                ListViewItem lstItem = new ListViewItem();

                for (int i = 0; i < nmUpDnPointCount.Value; i++)
                {
                    AType aType = AVisionProBuild.GetType(nType);
                    if (aType.m_lstAPoint[i] != null)
                    {
                        lstItem = lstvwPoint.Items.Add(i.ToString());
                        lstItem.SubItems.Add(aType.m_lstAPoint[i].Name);
                    }
                    else
                    {
                        lstItem = lstvwPoint.Items.Add(i.ToString());
                    }
                }
            }
            catch
            {
            }
        }
Esempio n. 4
0
        private void btnModifyPointName_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null || lstvwPoint.FocusedItem == null)
            {
                //MessageBox.Show("Type 또는 Point가 선택되지 않았습니다. Type 또는 Point를 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_or_Point_Not_Select"));
                return;
            }

            int nType  = lstvwType.FocusedItem.Index;
            int nPoint = lstvwPoint.FocusedItem.Index;

            AType aType = AVisionProBuild.GetType(nType);

            if (aType != null && nType >= 0)
            {
                if (aType.m_lstAPoint[nPoint] != null && nPoint >= 0)
                {
                    aType.m_lstAPoint[nPoint].Name = txtPointName.Text;
// 2016.06.20
//#if !_USE_1Camera
#if (!_USE_BASLER_PYLON && !_USE_IMAGING_CONTROL && !_USE_1Camera)
                    // 2015.10.02 by kdi
                    aType.SetPointNameOfAcq(nPoint, txtPointName.Text);
#endif

                    lstvwType_Click(null, null);
                }
            }
        }
Esempio n. 5
0
        // 2016.10.11
        // 2016.06.17
        public FrmFrameSet(IntPtr hParent, int nType, int nPosition)
        //public FrmFrameSet(IntPtr hParent, int nPosition)
        {
            InitializeComponent();

            m_hParent = hParent;

            m_nPosition = nPosition;

            // 2016.10.11
            // 2016.06.17
            int    i;
            string strType;

            for (i = 0; i < AVisionProBuild.GetTypeCount(); i++)
            {
                strType = AVisionProBuild.GetType(i).Name;

                cmbType.Items.Add(strType);
            }

            cmbType.SelectedIndex = nType;

            lblTitle.Text = "P" + (m_nPosition + 1).ToString() + "  :" + cmbType.Text;
            ReadData();
        }
Esempio n. 6
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            int nType = cmbType.SelectedIndex;

            // 2016.04.04
            try
            {
                // 2011.06.23
                AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dX  = Convert.ToDouble(txtLowX.Text);
                AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dY  = Convert.ToDouble(txtLowY.Text);
                AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dZ  = Convert.ToDouble(txtLowZ.Text);
                AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dAX = Convert.ToDouble(txtLowAX.Text);
                AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dAY = Convert.ToDouble(txtLowAY.Text);
                AVisionProBuild.GetType(nType).m_pstLimitLow[m_nCount].dAZ = Convert.ToDouble(txtLowAZ.Text);


                AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dX  = Convert.ToDouble(txtHighX.Text);
                AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dY  = Convert.ToDouble(txtHighY.Text);
                AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dZ  = Convert.ToDouble(txtHighZ.Text);
                AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dAX = Convert.ToDouble(txtHighAX.Text);
                AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dAY = Convert.ToDouble(txtHighAY.Text);
                AVisionProBuild.GetType(nType).m_pstLimitHigh[m_nCount].dAZ = Convert.ToDouble(txtHighAZ.Text);
            }
            catch (Exception exc)
            {
                AUtil.TopMostMessageBox.Show(exc.Message, "Connect Exception occurs", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            AVisionProBuild.GetType(nType).WriteIniLimit(m_nCount);

            // 2012.12.27
            string strTxt = "Limit Change: " + lblTypeName.Text;

            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Low_X: " + txtLowX.Text + "\tHigh_X: " + txtHighX.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Low_Y: " + txtLowY.Text + "\tHigh_Y: " + txtHighY.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Low_Z: " + txtLowZ.Text + "\tHigh_Z: " + txtHighZ.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Low_AX: " + txtLowAX.Text + "\tHigh_AX: " + txtHighAX.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Low_AY: " + txtLowAY.Text + "\tHigh_AY: " + txtHighAY.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Low_AZ: " + txtLowAZ.Text + "\tHigh_AZ: " + txtHighAZ.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");

            //this.Close();
        }
Esempio n. 7
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            int nType = cmbType.SelectedIndex;

            // 2016.04.04
            try
            {
                AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dX  = Convert.ToDouble(txtOffsetX.Text);
                AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dY  = Convert.ToDouble(txtOffsetY.Text);
                AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dZ  = Convert.ToDouble(txtOffsetZ.Text);
                AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dAX = Convert.ToDouble(txtOffsetAX.Text);
                AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dAY = Convert.ToDouble(txtOffsetAY.Text);
                AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dAZ = Convert.ToDouble(txtOffsetAZ.Text);
            }
            catch (Exception exc)
            {
                AUtil.TopMostMessageBox.Show(exc.Message, "Connect Exception occurs", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            AVisionProBuild.GetType(nType).WriteIniOffset(m_nCount);

            // 2012.12.27
            string strTxt = "Offset Change: " + lblTypeName.Text;

            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "X: " + txtOffsetX.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Y: " + txtOffsetY.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "Z: " + txtOffsetZ.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "AX: " + txtOffsetAX.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "AY: " + txtOffsetAY.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");
            strTxt = "AZ: " + txtOffsetAZ.Text;
            // 2015.02.11
            AVisionProBuild.WriteLogFile(strTxt, ".Setup.txt");

            //this.Close();
        }
Esempio n. 8
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            if (txtTypeName.Text != "")
            {
                this.Cursor = Cursors.WaitCursor;

                AVisionProBuild.AddType(txtTypeName.Text, (int)nmUpDnPointCount.Value);
                AVisionProBuild.m_nTypeCount++;

                // 2011.06.23
                AVisionProBuild.GetType(AVisionProBuild.m_nTypeCount - 1).PlcToPc = txtPlcToPc.Text;
                AVisionProBuild.GetType(AVisionProBuild.m_nTypeCount - 1).WriteIniPlcToPc();
                Init();

                this.Cursor = Cursors.Default;
            }
        }
Esempio n. 9
0
        private void btnViewVpp_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null)
            {
                //MessageBox.Show("Type이 선택되지 않았습니다. Type을 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            int              nType = lstvwType.FocusedItem.Index;
            AType            aType = AVisionProBuild.GetType(nType);
            AFrmCogToolGroup frm   = new AFrmCogToolGroup(aType.m_cogtgType);

            // 2015.03.20
            frm.Show(this);
        }
Esempio n. 10
0
        private void btnPlcToPcSave_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null)
            {
                //MessageBox.Show("Type이 선택되지 않았습니다. Type을 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            int nType = lstvwType.FocusedItem.Index;

            // 2011.06.23
            AVisionProBuild.GetType(nType).PlcToPc = txtPlcToPc.Text;
            AVisionProBuild.GetType(nType).WriteIniPlcToPc();
            Init();
        }
Esempio n. 11
0
        private void cmbType_SelectedIndexChanged(object sender, EventArgs e)
        {
            int    i;
            string strPoint;
            int    nType = cmbType.SelectedIndex;

            AType aType = AVisionProBuild.GetType(nType);

            cmbPoint.Items.Clear();
            for (i = 0; i < aType.m_lstAPoint.Count; i++)
            {
                strPoint = aType.m_lstAPoint[i].Name;

                cmbPoint.Items.Add(strPoint);
            }
            cmbPoint.SelectedIndex = 0;
        }
        // save
        private void btnSave_Click(object sender, EventArgs e)
        {
            int nType = cmbType.SelectedIndex;

            AType  aType = AVisionProBuild.GetType(nType);
            string strSN = "";//, strTempSN = "";
            //int nPos = -1;
            StringBuilder sb = new StringBuilder(100);

            for (int i = 0; i < aType.m_lstAPoint.Count; i++)
            {
                strSN = lstvwPoint.Items[i].SubItems[2].Text;
                strSN = strSN.Trim();
                if (strSN.Length == 0)
                {
                    MessageBox.Show(AUtil.GetXmlLanguage("The_camera_is_not_set_point_exists") + "\r\n" + AUtil.GetXmlLanguage("First_Set_your_camera_to_the_point"), "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    //MessageBox.Show("카메라가 설정되지 않는 포인트가 존재합니다\r\n해당 포인트에 카메라 설정을 먼저 하세요", "", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
            }

            for (int i = 0; i < aType.m_lstAPoint.Count; i++)
            {
                // camera serial number
                strSN = lstvwPoint.Items[i].SubItems[2].Text;
                strSN = strSN.Trim();

                //AUtil.WritePrivateProfileString(aType.Name, "Dev_" + lstvwPoint.Items[i].SubItems[1].Text, strSN, ASDef._INI_FILE);
                AUtil.WritePrivateProfileString(aType.Name, "Dev_Point" + i.ToString(), strSN, ASDef._INI_FILE);

                aType.m_lstAPoint[i].m_strDevName = strSN;

                // pixel format
                strSN = lstvwPoint.Items[i].SubItems[3].Text;
                strSN = strSN.Trim();

                AUtil.WritePrivateProfileString(aType.Name, "Point" + i.ToString() + "_PixelFormat", strSN, ASDef._INI_FILE);

                aType.m_lstAPoint[i].m_strPixelFormat = strSN;
            }

            MessageBox.Show(AUtil.GetXmlLanguage("Completed_the_save"));
            //MessageBox.Show("저장을 완료하였습니다");
        }
Esempio n. 13
0
        private void btnModifyTypeName_Click(object sender, EventArgs e)
        {
            if (lstvwType.FocusedItem == null)
            {
                //MessageBox.Show("Type이 선택되지 않았습니다. Type을 선택 하세요!");
                // 2013.12.02
                MessageBox.Show(AUtil.GetXmlLanguage("Type_Not_Select"));
                return;
            }

            int nType = lstvwType.FocusedItem.Index;

            AType aType = AVisionProBuild.GetType(nType);

            if (aType != null && nType >= 0)
            {
                aType.Name = txtTypeName.Text;

                Init();
            }
        }
Esempio n. 14
0
        private void ReadData()
        {
            int nType = cmbType.SelectedIndex;

            if (m_strLoc == "")
            {
                lblTypeName.Text = AVisionProBuild.GetType(nType).Name;
            }
            else
            {
                lblTypeName.Text = AVisionProBuild.GetType(nType).Name + "(" + m_strLoc + ")";
            }

            txtOffsetX.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dX);
            txtOffsetY.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dY);
            txtOffsetZ.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dZ);

            txtOffsetAX.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dAX);
            txtOffsetAY.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dAY);
            txtOffsetAZ.Text = String.Format("{0:f2}", AVisionProBuild.GetType(nType).m_pstOffset[m_nCount].dAZ);
        }
Esempio n. 15
0
        public FrmHoleLocationSet(IntPtr hParent, int nType)
        {
            InitializeComponent();

            m_hParent = hParent;

            m_ptxtX = new TextBox[] { txtX_P1, txtX_P2, txtX_P3, txtX_P4 };
            m_ptxtY = new TextBox[] { txtY_P1, txtY_P2, txtY_P3, txtY_P4 };
            m_ptxtZ = new TextBox[] { txtZ_P1, txtZ_P2, txtZ_P3, txtZ_P4 };

            int    i;
            string strType;

            for (i = 0; i < AVisionProBuild.GetTypeCount(); i++)
            {
                strType = AVisionProBuild.GetType(i).Name;

                cmbType.Items.Add(strType);
            }
            cmbType.SelectedIndex = nType;
        }
Esempio n. 16
0
        public AFrmLight(IntPtr hParent, int nType)
        {
            InitializeComponent();

            m_hParent = hParent;

            m_ptxtExposure = new TextBox[] { txtExposure0, txtExposure1, txtExposure2 };
            m_ptxtLed      = new TextBox[] { txtLed0, txtLed1, txtLed2 };

            int    i;
            string strType;

            for (i = 0; i < AVisionProBuild.GetTypeCount(); i++)
            {
                strType = AVisionProBuild.GetType(i).Name;

                cmbType.Items.Add(strType);
            }
            cmbType.SelectedIndex = nType;

            InitLanguage();
        }
Esempio n. 17
0
        public AFrmOffset(IntPtr hParent, int nType, int nCount, string strLoc)
        {
            InitializeComponent();

            m_hParent = hParent;

            m_nCount = nCount;

            m_strLoc = strLoc;

            InitLanguage();

            int    i;
            string strType;

            for (i = 0; i < AVisionProBuild.GetTypeCount(); i++)
            {
                strType = AVisionProBuild.GetType(i).Name;

                cmbType.Items.Add(strType);
            }
            cmbType.SelectedIndex = nType;
        }
Esempio n. 18
0
        public FrmPartOffset(FrmMain PMain, int nType)
        {
            InitializeComponent();

            m_PMain = PMain;
            // 2011.08.08
            m_nType = nType;

            //---------------------------------------------------------
            // 2020.03.12 ASDef._3D_POSITION_COUNT->4
            m_pptxtHoleX = new TextBox[4, 2] {
                { txtHoleX_P1L, txtHoleX_P1R },
                { txtHoleX_P2L, txtHoleX_P2R },
                { txtHoleX_P3L, txtHoleX_P3R },
                { txtHoleX_P4L, txtHoleX_P4R }
            };
            m_pptxtHoleY = new TextBox[4, 2] {
                { txtHoleY_P1L, txtHoleY_P1R },
                { txtHoleY_P2L, txtHoleY_P2R },
                { txtHoleY_P3L, txtHoleY_P3R },
                { txtHoleY_P4L, txtHoleY_P4R }
            };

            m_ptxtCalibX = new TextBox[4] {
                txtCalibX_P1, txtCalibX_P2, txtCalibX_P3, txtCalibX_P4
            };
            m_ptxtCalibY = new TextBox[4] {
                txtCalibY_P1, txtCalibY_P2, txtCalibY_P3, txtCalibY_P4
            };
            m_ptxtCalibZ = new TextBox[4] {
                txtCalibZ_P1, txtCalibZ_P2, txtCalibZ_P3, txtCalibZ_P4
            };

            m_ptxtX = new TextBox[4] {
                txtX_P1, txtX_P2, txtX_P3, txtX_P4
            };
            m_ptxtY = new TextBox[4] {
                txtY_P1, txtY_P2, txtY_P3, txtY_P4
            };
            m_ptxtZ = new TextBox[4] {
                txtZ_P1, txtZ_P2, txtZ_P3, txtZ_P4
            };

            m_pchkAutoFind = new CheckBox[4] {
                chkAutoFindP1, chkAutoFindP2, chkAutoFindP3, chkAutoFindP4
            };
            m_ptxtAutoX = new TextBox[4] {
                txtAutoX_P1, txtAutoX_P2, txtAutoX_P3, txtAutoX_P4
            };
            m_ptxtAutoY = new TextBox[4] {
                txtAutoY_P1, txtAutoY_P2, txtAutoY_P3, txtAutoY_P4
            };
            m_ptxtAutoZ = new TextBox[4] {
                txtAutoZ_P1, txtAutoZ_P2, txtAutoZ_P3, txtAutoZ_P4
            };
            //---------------------------------------------------------

            /* 2011.08.08
             * int i;
             * string strType;
             * for (i = 0; i < AVisionProBuild.GetTypeCount(); i++)
             * {
             *  strType = AVisionProBuild.GetType(i).Name;
             *
             *  cmbType.Items.Add(strType);
             * }
             * cmbType.SelectedIndex = nType;
             */
            lblTypeName.Text = AVisionProBuild.GetType(nType).Name;;
            // 2016.06.20
            lblTitle.Text = AUtil.GetXmlLanguage("Part") + " " + AUtil.GetXmlLanguage("Offset") + " " + AUtil.GetXmlLanguage("Setup");

            ReadData();
        }
        private void cmbType_SelectedIndexChanged(object sender, EventArgs e)
        {
            int nType = cmbType.SelectedIndex;

            lstvwPoint.Items.Clear();
            ListViewItem lstItem = new ListViewItem();

            AType aType = AVisionProBuild.GetType(nType);
//#if !_USE_1Camera && !_USE_BASLER_PYLON
            string strSN = "";
//#endif
            StringBuilder sb = new StringBuilder(100);

            for (int i = 0; i < aType.m_lstAPoint.Count; i++)
            {
#if !_USE_1Camera && !_USE_BASLER_PYLON
                //if (aType.m_lstAPoint[i] != null)
                //{
                //    // index
                //    lstItem = lstvwPoint.Items.Add(i.ToString());
                //    lstItem.Checked = true;
                //    // point name
                //    lstItem.SubItems.Add(aType.m_lstAPoint[i].Name);
                //    // camera serial number(현재)
                //    lstItem.SubItems.Add(GetCameraSerialNumber(aType.GetPoint(i).GetAcq().AcqFifoTool));
                //    // camera serial number(기존)
                //    AUtil.GetPrivateProfileString(aType.Name, "Point" + i.ToString() + "_Camera_SN", "", sb, 100, ASDef._INI_FILE);
                //    strSN = sb.ToString();
                //    if( strSN.Length > 0 )
                //        strSN = strSN + GetCameraPort(aType.GetPoint(i).GetAcq().AcqFifoTool);
                //    lstItem.SubItems.Add(strSN);
                //}
                //else
                //    lstItem = lstvwPoint.Items.Add(i.ToString());

                if (aType.m_lstAPoint[i] != null)
                {
                    // index
                    lstItem         = lstvwPoint.Items.Add(i.ToString());
                    lstItem.Checked = true;
                    // point name
                    lstItem.SubItems.Add(aType.m_lstAPoint[i].Name);
                    // camera serial number
                    lstItem.SubItems.Add(aType.m_lstAPoint[i].m_strDevName);
                    // pixel format
                    lstItem.SubItems.Add(aType.m_lstAPoint[i].m_strPixelFormat);

                    lstItem.SubItems.Add(strSN);
                }
                else
                {
                    lstItem = lstvwPoint.Items.Add(i.ToString());
                }
#elif _USE_BASLER_PYLON
                //** to do:

                if (aType.m_lstAPoint[i] != null)
                {
                    // index
                    lstItem         = lstvwPoint.Items.Add(i.ToString());
                    lstItem.Checked = true;
                    // point name
                    lstItem.SubItems.Add(aType.m_lstAPoint[i].Name);
                    // camera serial number
                    lstItem.SubItems.Add(aType.m_lstAPoint[i].m_strDevName);
                    // pixel format
                    lstItem.SubItems.Add(aType.m_lstAPoint[i].m_strPixelFormat);

                    lstItem.SubItems.Add(strSN);
                }
                else
                {
                    lstItem = lstvwPoint.Items.Add(i.ToString());
                }
#endif
            }


            txtSerialNumber.Text = "";
            grbPoint.Text        = "";
        }