private void button2_Click_1(object sender, EventArgs e) { double Ib, Ic, Rc, Rb, Vcc, Vce, Vbe, Imax, beta; try { Rc = Convert.ToDouble(txtbeyzrc.Text) * 1000; Rb = Convert.ToDouble(txtbeyzrb.Text) * 1000; Vcc = Convert.ToDouble(txtbeyzvcc.Text); Imax = (1000 * Vcc) / Rc; beta = Convert.ToDouble(txtbeyzbeta.Text); Vbe = Convert.ToDouble(txtbeyzvbe.Text); if (Rc > 0 & Rb > 0) { Ib = ((Vcc - Vbe) / Rb) * Math.Pow(10, 6); Ic = beta * Ib * Math.Pow(10, -3); Vce = Vcc - Ic * Rc * Math.Pow(10, -3); lblbeyzib.Text = " = " + Ib.ToString(); lblbeyzıc.Text = " = " + Ic.ToString(); lblbeyzımax.Text = " = " + Imax.ToString(); lblbeyzvce.Text = " = " + Vce.ToString(); } else { MessageBox.Show("Direnc Degerlerini yanlış girdiniz:"); } } catch (Exception) { Form1.HataMesaji(); } }
private void button3_Click(object sender, EventArgs e) { double Ib, Ic, Rc, Rb, Vcc, Vce, Vbe, Imax, beta; Rc = Convert.ToDouble(txtbeyzrc.Text) * 1000; Rb = Convert.ToDouble(txtbeyzrb.Text) * 1000; Vcc = Convert.ToDouble(txtbeyzvcc.Text); Imax = (1000 * Vcc) / Rc; beta = Convert.ToDouble(txtbeyzbeta.Text); Vbe = Convert.ToDouble(txtbeyzvbe.Text); Ib = ((Vcc - Vbe) / Rb) * Math.Pow(10, 6); Ic = beta * Ib * Math.Pow(10, -3); Vce = Vcc - Ic * Rc * Math.Pow(10, -3); lblbeyzib.Text = " = " + Ib.ToString(); lblbeyzıc.Text = " = " + Ic.ToString(); lblbeyzımax.Text = " = " + Imax.ToString(); lblbeyzvce.Text = " = " + Vce.ToString(); ZedGraph.ZedGraphControl g = new ZedGraph.ZedGraphControl(); g.Size = new Size(panel2.Width - 2, panel2.Height - 2); ZedGraph.GraphPane myGraphPane = g.GraphPane; myGraphPane.Title.Text = "Dc yük eğrisi "; myGraphPane.XAxis.Title.Text = "Volt (V)"; myGraphPane.YAxis.Title.Text = "Akım(ma)"; PointPairList list1 = new PointPairList(); myGraphPane.AddCurve("", new double[] { 0, Vcc }, new double[] { Imax, 0 }, Color.Blue, ZedGraph.SymbolType.None); myGraphPane.AddCurve("", new double[] { 0, Vce }, new double[] { Ic, Ic }, Color.Blue, ZedGraph.SymbolType.None); myGraphPane.AddCurve("", new double[] { Vce, Vce }, new double[] { Ic, 0 }, Color.Blue, ZedGraph.SymbolType.None); myGraphPane.Chart.Fill = new ZedGraph.Fill(Color.White, Color.Red, 3.0f); g.AxisChange(); panel2.Controls.Add(g); }
public void Ficken(Ib jop) { Console.WriteLine(jop.ToString()); }