Beispiel #1
0
        private void Single_Gamma_Read()
        {
            Form1        f1    = (Form1)Application.OpenForms["Form1"];
            DP150_EA9152 DP150 = DP150_EA9152.getInstance();

            for (int band = 0; band < 14; band++)
            {
                string Mipi_CMD     = "mipi.write 0x39 " + DP150.Get_Gamma_Register_Hex_String(band); //"mipi.write 0x39 0xXX"
                string Band_Address = DP150.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);
            }
        }
Beispiel #2
0
 public static DP150_EA9152 getInstance()
 {
     if (instance == null)
     {
         instance = new DP150_EA9152();
     }
     return(instance);
 }
Beispiel #3
0
 public void Set_Model_As_DP150()
 {
     current_model = DP150_EA9152.getInstance();
 }