private void PL_OP_Click(object sender, RoutedEventArgs e) { if (PowerLoss_OutputPower == null) { PowerLoss_OutputPower = new Graph_Window(); PowerLoss_OutputPower.Closed += (a, b) => PowerLoss_OutputPower = null; PowerLoss_OutputPower.setWindowTitle("Power Loss (%) vs Output Load Power (W)"); PowerLoss_OutputPower.setXYLabels("Output Load Power (W)", "Power Loss (%)"); PowerLoss_OutputPower.setXYUnits("W", "%"); PowerLoss_OutputPower.Show(); } else { PowerLoss_OutputPower.Show(); insert_Log("Power Loss vs Output Load Power Window is already open.", Warning_Code); } }
private void OV_OC_Click(object sender, RoutedEventArgs e) { if (OutputVoltage_OutputCurrent == null) { OutputVoltage_OutputCurrent = new Graph_Window(); OutputVoltage_OutputCurrent.Closed += (a, b) => OutputVoltage_OutputCurrent = null; OutputVoltage_OutputCurrent.setWindowTitle("[Sink] Output Voltage (V) vs [Sink] Output Load Current (A)"); OutputVoltage_OutputCurrent.setXYLabels("Output Load Current (A)", "Output Voltage (V)"); OutputVoltage_OutputCurrent.setXYUnits("A", "V"); OutputVoltage_OutputCurrent.Show(); } else { OutputVoltage_OutputCurrent.Show(); insert_Log("Output Voltage vs Output Current Window is already open.", Warning_Code); } }
private void IP_OP_Click(object sender, RoutedEventArgs e) { if (OutputPower_InputPower == null) { OutputPower_InputPower = new Graph_Window(); OutputPower_InputPower.Closed += (a, b) => OutputPower_InputPower = null; OutputPower_InputPower.setWindowTitle("[Sink] Output Load Power (W) vs [Source] Input Power (W)"); OutputPower_InputPower.setXYLabels("Input Power (W)", "Output Load Power (W)"); OutputPower_InputPower.setXYUnits("W", "W"); OutputPower_InputPower.Show(); } else { OutputPower_InputPower.Show(); insert_Log("Input Power vs Output Power Window is already open.", Warning_Code); } }
private void IV_IC_Click(object sender, RoutedEventArgs e) { if (InputVoltage_InputCurrent == null) { InputVoltage_InputCurrent = new Graph_Window(); InputVoltage_InputCurrent.Closed += (a, b) => InputVoltage_InputCurrent = null; InputVoltage_InputCurrent.setWindowTitle("[Source] Input Voltage (V) vs [Source] Input Current (A)"); InputVoltage_InputCurrent.setXYLabels("Input Current (A)", "Input Voltage (V)"); InputVoltage_InputCurrent.setXYUnits("A", "V"); InputVoltage_InputCurrent.Show(); } else { InputVoltage_InputCurrent.Show(); insert_Log("Input Current vs [Source] Input Voltage Window is already open.", Warning_Code); } }
private void PE_OC_Click(object sender, RoutedEventArgs e) { if (PowerEfficiency_OutputCurrent == null) { PowerEfficiency_OutputCurrent = new Graph_Window(); PowerEfficiency_OutputCurrent.Closed += (a, b) => PowerEfficiency_OutputCurrent = null; PowerEfficiency_OutputCurrent.setWindowTitle("Power Efficiency (%) vs [Sink] Output Load Current (A)"); PowerEfficiency_OutputCurrent.setXYLabels("Output Load Current (A)", "Power Efficiency (%)"); PowerEfficiency_OutputCurrent.setXYUnits("A", "%"); PowerEfficiency_OutputCurrent.Show(); } else { PowerEfficiency_OutputCurrent.Show(); insert_Log("PowerEfficiency vs Output Current Window is already open.", Warning_Code); } }