void DrawG2Osc(int OscPage = 0) { if (!G2Set) { var p = Parent.Parent.Parent as Form1; p.SetLastError("Настройки ГНЧ не заданы"); return; } var signal = new MultiToneSignal(harmonics, ProceedInput(KEdit.Text)); OG2 = new Oscilloscope("ГНЧ", signal, OscPage); OG2.DrawOsc(); OG2.DrawSpec(); OG2.DrawPhaseSpec(); OG2.Show(); }
void DrawG1Osc(int OscPage = 0) { if (!G1Set) { var p = Parent.Parent.Parent as Form1; p.SetLastError("Настройки ГВЧ не заданы"); return; } var signal = new SingleToneSignal(Source); OG1 = new Oscilloscope("ГВЧ", signal, OscPage); OG1.DrawOsc(); OG1.DrawSpec(); OG1.DrawPhaseSpec(); OG1.Show(); }
void DrawEndOsc(int OscPage = 0) { if (!G2Set || !G1Set) { var p = Parent.Parent.Parent as Form1; if (!G1Set) { p.SetLastError("Настройки ГВЧ не заданы"); } if (!G2Set) { p.SetLastError("Настройки ГНЧ не заданы"); } return; } var signal = new FM(harmonics, Source, ProceedInput(KEdit.Text)); OEnd = new Oscilloscope("ЧМ сигнал", signal, OscPage); OEnd.DrawOsc(periods: 1); OEnd.DrawPhaseSpec(); OEnd.DrawSpec(true); OEnd.Show(); }
void DrawEndOsc(int OscPage = 0) { if (!G2Set || !G1Set) { var p = Parent.Parent.Parent as Form1; if (!G1Set) { p.SetLastError("Настройки ГВЧ не заданы"); } if (!G2Set) { p.SetLastError("Настройки ГНЧ не заданы"); } return; } var signal = new SM(harmonics, Source, ProceedInput(KEdit.Text), FilterKoef.Value / 10.0, RightSide); OEnd = new Oscilloscope("ОМ сигнал", signal, OscPage); OEnd.DrawOsc(Oscilloscope.FuncType.Modulated); OEnd.DrawPhaseSpec(); OEnd.DrawSpec(); OEnd.Show(); }