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