示例#1
0
        public override void CleanUp()
        {
            if (!GeneTestSetup.Instance.IsSimulated)
            {
                if (DCPSInfo1.IsTest)
                {
                    if (DCPSInfo1.IsAutoOff)
                    {
                        DCPS.SetOutputEnable(1, false);
                    }
                }

                if (DCPSInfo2.IsTest)
                {
                    if (DCPSInfo2.IsAutoOff)
                    {
                        DCPS.SetOutputEnable(2, false);
                    }
                }

                if (DCPSInfo3.IsTest)
                {
                    if (DCPSInfo3.IsAutoOff)
                    {
                        DCPS.SetOutputEnable(3, false);
                    }
                }

                if (DCPSInfo4.IsTest)
                {
                    if (DCPSInfo4.IsAutoOff)
                    {
                        DCPS.SetOutputEnable(4, false);
                    }
                }
            }
        }
示例#2
0
        public override void Single()
        {
            if (GeneTestSetup.Instance.IsSimulated)
            {
            }
            else
            {
                if (DCPSInfo1.IsTest)
                {
                    DCPS.SetVoltage(1, DCPSInfo1.Voltage);
                    DCPS.SetCurrentLimit(1, DCPSInfo1.Current);
                    DCPS.SetOutputEnable(1, true);
                }

                if (DCPSInfo2.IsTest)
                {
                    DCPS.SetVoltage(2, DCPSInfo2.Voltage);
                    DCPS.SetCurrentLimit(2, DCPSInfo2.Current);
                    DCPS.SetOutputEnable(2, true);
                }

                if (DCPSInfo3.IsTest)
                {
                    DCPS.SetVoltage(3, DCPSInfo3.Voltage);
                    DCPS.SetCurrentLimit(3, DCPSInfo3.Current);
                    DCPS.SetOutputEnable(3, true);
                }

                if (DCPSInfo4.IsTest)
                {
                    DCPS.SetVoltage(4, DCPSInfo4.Voltage);
                    DCPS.SetCurrentLimit(4, DCPSInfo4.Current);
                    DCPS.SetOutputEnable(4, true);
                }
            }
        }