Example #1
0
        public static int EntryHandlerTest()
        {
            int nStatus = 0;

            nStatus = CI2cControl.SendI2cCommand("PASS_LAMP_OFF");


            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("FAIL_LAMP_OFF");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("D+_D-_CLOSE");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("PSU2_CLOSE");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("PSU1_CLOSE");
            }

            return(nStatus);
        }
Example #2
0
        public static int EntryHandlerSystem()
        {
            int nStatus = 0;

            nStatus = CI2cControl.SendI2cCommand("PASS_LAMP_ON");

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("FAIL_LAMP_ON");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("ID_TO_VBUS_CLOSE");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("PSU2_CLOSE");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("PSU1_CLOSE");
            }


            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("D+_D-_CLOSE");
            }
            return(nStatus);
        }
Example #3
0
        public static int OpenTunerDVM()
        {
            int nStatus = 0;

            nStatus = CI2cControl.SendI2cCommand("DVM1_TUNER_OPEN");

            return(nStatus);
        }
Example #4
0
        public static int CloseTunerDVM()
        {
            int nStatus = 0;

            nStatus = CI2cControl.SendI2cCommand("DVM1_TUNER_CLOSE");

            return(nStatus);
        }
Example #5
0
        public static int OpenPowerKey()
        {
            int nStatus = 0;

            nStatus = CI2cControl.SendI2cCommand("CHLS_PW_KEY_OPEN");

            return(nStatus);
        }
Example #6
0
        public static int ClosePowerKey()
        {
            int nStatus = 0;

            nStatus = CI2cControl.SendI2cCommand("CHLS_PW_KEY_CLOSE");

            return(nStatus);
        }
Example #7
0
        public static int ExitHandlerTest(string strPassFail)
        {
            int nStatus = 0;

            if (strPassFail == "PASS")
            {
                Thread.Sleep(200);
                nStatus = CI2cControl.SendI2cCommand("PASS_LAMP_ON");
            }
            else
            {
                Thread.Sleep(200);
                nStatus = CI2cControl.SendI2cCommand("FAIL_LAMP_ON");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.ReleaseGPIBMutex();
            }
            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("D+_D-_OPEN");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("PSU2_OPEN");
            }

            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("PSU1_OPEN");
            }
            if (nStatus == 0)
            {
                nStatus = CI2cControl.SendI2cCommand("PASS_LAMP_ON");
                if (nStatus == 0)
                {
                    nStatus = CI2cControl.SendI2cCommand("FAIL_LAMP_ON");
                }
            }

            return(nStatus);
        }
Example #8
0
 public static int SendI2CCommand(string strI2CCommand)
 {
     return(CI2cControl.SendI2cCommand(strI2CCommand));
 }