Esempio n. 1
0
        public static void SwitchDutPower(int channel_no, PowerSupplyState PowerState)
        {
            try
            {
                if (!swConnected)
                {
                    ConnectSwitch();
                }

                if (PowerState == PowerSupplyState.PowerOn)
                {
                    //close single channel
                    sw.SetRelayWellA_byCH(channel_no, true);
                }
                else
                {
                    //open single channel
                    sw.SetRelayWellA_byCH(channel_no, false);
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Esempio n. 2
0
        public static void SwitchDutPower(int channel_no, PowerSupplyState PowerState)
        {
            try
            {
                if (!swConnected)
                {
                    ConnectSwitch();
                }

                if (PowerState == PowerSupplyState.PowerOn)
                {
                    //close single channel
                    sw.SetRelayWellA_byCH(channel_no, true);
                }
                else
                {
                    //open single channel
                    sw.SetRelayWellA_byCH(channel_no, false);
                }
            }
            catch (Exception)
            {
                Logger.PrintLog(MTKInstruments.sw, "", LogDetailLevel.LogRelevant);
            }
        }