public ColorCalibration(DUTclass.DUT dut, Ca310Pipe pipe, Fixture fixture, Colorimeter colorimeter)
 {
     this.dut       = dut;
     this.ca310Pipe = pipe;
     this.fixture   = fixture;
     this.camera    = colorimeter;
     this.rgbList   = new List <int[]>();
     FULLNAME       = this.filepath + @"\RGB.txt";
     PATH           = this.filepath + @"\ColorCalibration\";
 }
示例#2
0
        private void OnNewCameraClick(object sender, EventArgs e)
        {
            if (m_grabImages == true)
            {
                toolStripButtonStop_Click(sender, e);
                //m_camCtlDlg.Hide();
                //m_camCtlDlg.Disconnect();
                //m_camera.Disconnect();
                m_colorimeter.Disconnect();
                m_colorimeter = null;
            }

            Form1_Load(sender, e);
        }
示例#3
0
        public Engine(string scriptName)
        {
            colorimeter  = new Colorimeter();
            xml          = new XMLManage(scriptName);
            dut          = new Hodor();
            ip           = new imagingpipeline();
            args         = new DataChangeEventArgs();
            log          = new testlog();
            fixture      = new Fixture("COM1");
            SerialNumber = "";

            if (!System.IO.Directory.Exists(IMAGE_SAVE_PATH))
            {
                System.IO.Directory.CreateDirectory(IMAGE_SAVE_PATH);
            }
        }
示例#4
0
        // UI related
        private void Form1_Load(object sender, EventArgs e)
        {
            this.Hide();
            m_preTabPage = Tabs.TabPages[0];

            xml = new XMLManage("XMLFile1.xml");
            xml.LoadScript();
            fixture = new Fixture("COM21");

            if (!isdemomode)
            {
                m_colorimeter = new Colorimeter();

                if (!m_colorimeter.Connect())
                {
                    MessageBox.Show("No camera.");
                    Application.Exit();
                    return;
                }
                new Action(delegate() {
                    //        fixture.Reset();
                    while (true)
                    {
                        UpdateCCDTemperature();
                        UpdateUpTime();
                        UpdateStatusBar();
                        colorimeterstatus();
                        System.Threading.Thread.Sleep(100);
                    }
                }).BeginInvoke(null, null);
            }
            else
            {
                Tabs.SelectedTab = tab_Analysis;
                MessageBox.Show("Demo Mode with no Colorimeter. Only for Analysis", "Remind");
            }

            Show();
            tbox_sn.Focus();
        }
 public FlexCalibration(Colorimeter colorimeter)
 {
     this.camera = colorimeter;
     this.PATH   = this.filepath + @"\FlexCalibration\";
 }
 public LuminanceCalibration(Ca310Pipe pipe, Fixture fixture, Colorimeter colorimeter)
 {
     this.ca310Pipe = pipe;
     this.fixture   = fixture;
     this.camera    = colorimeter;
 }