Exemplo 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;
            }
        }
Exemplo 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);
            }
        }