Ejemplo n.º 1
0
        public void Update_Calculated_Vdata(DP173_or_Elgin model, Gamma_Set Set)
        {
            DP173_Model_Option_Form DP173 = (DP173_Model_Option_Form)Application.OpenForms["DP173_Model_Option_Form"];

            RGB_Double[,] Temp_Calculated_Vdata = Get_Calculated_Vdata(Set);
            double[] Temp_Calculated_Vreg1_Voltage = Get_Calculated_Vreg1_Voltage(Set);

            //-------------Added on 200316-----------
            if (model.band < 11)
            {
                //update Vreg1 , R/G/B AM2 Voltage
                if (model.gray == 0)
                {
                    int Dec_Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Set);//Current_Band Vreg1
                    Temp_Calculated_Vreg1_Voltage[model.band] = Imported_my_cpp_dll.DP173_Get_Vreg1_Voltage(Dec_Vreg1, DP173.Voltage_VREG1_REF2047, DP173.Voltage_VREG1_REF1635, DP173.Voltage_VREG1_REF1227, DP173.Voltage_VREG1_REF815, DP173.Voltage_VREG1_REF407, DP173.Voltage_VREG1_REF63, DP173.Voltage_VREG1_REF1);
                    Temp_Calculated_Vdata[model.band, model.gray].double_R = Imported_my_cpp_dll.DP173_Get_AM2_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.Gamma.int_R);
                    Temp_Calculated_Vdata[model.band, model.gray].double_G = Imported_my_cpp_dll.DP173_Get_AM2_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.Gamma.int_G);
                    Temp_Calculated_Vdata[model.band, model.gray].double_B = Imported_my_cpp_dll.DP173_Get_AM2_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.Gamma.int_B);
                }
                //update R/G/B Normal Voltage
                else
                {
                    Temp_Calculated_Vdata[model.band, model.gray].double_R = Imported_my_cpp_dll.DP173_Get_GR_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.R_AM1_Dec, Temp_Calculated_Vdata[model.band, (model.gray - 1)].double_R, model.Gamma.int_R, model.gray);
                    Temp_Calculated_Vdata[model.band, model.gray].double_G = Imported_my_cpp_dll.DP173_Get_GR_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.G_AM1_Dec, Temp_Calculated_Vdata[model.band, (model.gray - 1)].double_G, model.Gamma.int_G, model.gray);
                    Temp_Calculated_Vdata[model.band, model.gray].double_B = Imported_my_cpp_dll.DP173_Get_GR_Gamma_Voltage(DP173.Voltage_VREG1_REF2047, Temp_Calculated_Vreg1_Voltage[model.band], model.B_AM1_Dec, Temp_Calculated_Vdata[model.band, (model.gray - 1)].double_B, model.Gamma.int_B, model.gray);
                }
            }
            //---------------------------------------
        }
Ejemplo n.º 2
0
        public void Update_Data_Voltages_And_Skip_Band_Measures(Gamma_Set Set, DP173_or_Elgin model)
        {
            Form1 f1 = (Form1)Application.OpenForms["Form1"];
            DP173_Dual_Engineering_Mornitoring DP173_form_Dual_engineer = (DP173_Dual_Engineering_Mornitoring)Application.OpenForms["DP173_Dual_Engineering_Mornitoring"];
            DP173_Model_Option_Form            DP173 = (DP173_Model_Option_Form)Application.OpenForms["DP173_Model_Option_Form"];

            if (model.oc_mode == OC_Single_Dual_Triple.Dual)
            {
                if (Set == Gamma_Set.Set3)
                {
                    f1.GB_Status_AppendText_Nextline("Set3 Band" + (model.band).ToString() + " Skip (Just Apply Gamma and Vreg1)", Color.Blue);
                    model.Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Gamma_Set.Set1);

                    for (int g = 0; g < 8; g++)
                    {
                        DP173_form_Dual_engineer.Dual_Copy_Set1_Measure_To_Set3_Measure(model.band, g);
                        Calculated_Vdata_Set3[model.band, g] = Calculated_Vdata_Set1[model.band, g];//Set1 Vdata
                    }
                    Calculated_Vreg1_Voltage_Set3[model.band] = Calculated_Vreg1_Voltage_Set1[model.band];
                }
                else if (Set == Gamma_Set.Set4)
                {
                    f1.GB_Status_AppendText_Nextline("Set4 Band" + (model.band).ToString() + " Skip (Just Apply Gamma and Vreg1)", Color.Blue);
                    model.Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Gamma_Set.Set2);

                    for (int g = 0; g < 8; g++)
                    {
                        DP173_form_Dual_engineer.Dual_Copy_Set2_Measure_To_Set4_Measure(model.band, g);
                        Calculated_Vdata_Set4[model.band, g] = Calculated_Vdata_Set2[model.band, g];//Set2 Vdata
                    }
                    Calculated_Vreg1_Voltage_Set4[model.band] = Calculated_Vreg1_Voltage_Set2[model.band];
                }
                else if (Set == Gamma_Set.Set6)
                {
                    f1.GB_Status_AppendText_Nextline("Set6 Band" + (model.band).ToString() + " Skip (Just Apply Gamma and Vreg1)", Color.Blue);
                    model.Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Gamma_Set.Set5);

                    for (int g = 0; g < 8; g++)
                    {
                        DP173_form_Dual_engineer.Dual_Copy_Set5_Measure_To_Set6_Measure(model.band, g);
                        Calculated_Vdata_Set6[model.band, g] = Calculated_Vdata_Set5[model.band, g];//Set5 Vdata
                    }
                    Calculated_Vreg1_Voltage_Set6[model.band] = Calculated_Vreg1_Voltage_Set5[model.band];
                }
            }
            else if (model.oc_mode == OC_Single_Dual_Triple.Triple)
            {
                if (Set == Gamma_Set.Set4)
                {
                    f1.GB_Status_AppendText_Nextline("Set4 Band" + (model.band).ToString() + " Skip (Just Apply Gamma and Vreg1)", Color.Blue);
                    model.Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Gamma_Set.Set1);

                    for (int g = 0; g < 8; g++)
                    {
                        DP173_form_Dual_engineer.Dual_Copy_Set1_Measure_To_Set4_Measure(model.band, g);
                        Calculated_Vdata_Set4[model.band, g] = Calculated_Vdata_Set1[model.band, g];//Set1 Vdata
                    }
                    Calculated_Vreg1_Voltage_Set4[model.band] = Calculated_Vreg1_Voltage_Set1[model.band];
                }
                else if (Set == Gamma_Set.Set5)
                {
                    f1.GB_Status_AppendText_Nextline("Set5 Band" + (model.band).ToString() + " Skip (Just Apply Gamma and Vreg1)", Color.Blue);
                    model.Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Gamma_Set.Set2);

                    for (int g = 0; g < 8; g++)
                    {
                        DP173_form_Dual_engineer.Dual_Copy_Set2_Measure_To_Set5_Measure(model.band, g);
                        Calculated_Vdata_Set5[model.band, g] = Calculated_Vdata_Set2[model.band, g];//Set2 Vdata
                    }
                    Calculated_Vreg1_Voltage_Set5[model.band] = Calculated_Vreg1_Voltage_Set2[model.band];
                }
                else if (Set == Gamma_Set.Set6)
                {
                    f1.GB_Status_AppendText_Nextline("Set6 Band" + (model.band).ToString() + " Skip (Just Apply Gamma and Vreg1)", Color.Blue);
                    model.Vreg1 = DP173.DP173_Get_Normal_Initial_Vreg1(model.band, Gamma_Set.Set3);

                    for (int g = 0; g < 8; g++)
                    {
                        DP173_form_Dual_engineer.Dual_Copy_Set3_Measure_To_Set6_Measure(model.band, g);
                        Calculated_Vdata_Set6[model.band, g] = Calculated_Vdata_Set3[model.band, g];//Set5 Vdata
                    }
                    Calculated_Vreg1_Voltage_Set6[model.band] = Calculated_Vreg1_Voltage_Set3[model.band];
                }
            }
        }