예제 #1
0
        private void Single_Gamma_Read()
        {
            Form1        f1    = (Form1)Application.OpenForms["Form1"];
            DP173_EA9154 DP173 = DP173_EA9154.getInstance();

            for (int band = 0; band < 14; band++)
            {
                string Mipi_CMD     = "mipi.write 0x39 " + DP173.Get_Gamma_Register_Hex_String(band); //"mipi.write 0x39 0xXX"
                string Band_Address = DP173.Get_Gamma_Register_Hex_String(band).Remove(0, 2);         //"XX"

                if (band == 11)
                {
                    f1.IPC_Quick_Send_And_Show("mipi.write 0x15 0xB0 0x0A #AOD1", Color.Black);             //AOD1
                }
                else if (band == 12)
                {
                    f1.IPC_Quick_Send_And_Show("mipi.write 0x15 0xB0 0x32 #AOD2", Color.Black);                 //AOD2
                }
                else if (band == 13)
                {
                    f1.IPC_Quick_Send_And_Show("mipi.write 0x15 0xB0 0x5A #AOD3", Color.Black);                 //AOD3
                }
                f1.OTP_Read(40, Band_Address);
                for (int i = 0; i < 40; i++)
                {
                    Mipi_CMD += (" 0x" + f1.dataGridView1.Rows[i].Cells[1].Value.ToString());
                }
                f1.IPC_Quick_Send_And_Show(Mipi_CMD, Color.Black);
            }
        }
예제 #2
0
 public void Set_Model_As_DP173()
 {
     current_model = DP173_EA9154.getInstance();
 }