Beispiel #1
0
 public SingleFFTPlot(ReportNode rp) : base(rp)
 {
     fs = 1;
     AddMenuItem("Frequency", "Spectral Density", delegate { Plot(); });
     AddMenuItem("Frequency", "Spectral Density [fs]", delegate
     {
         InputFormBase ifb = InputFormFactory.GetInstance("Sampling Frequency",
                                                          "Sampling Frequency(Fs)");
         if (ifb.ShowDialog() == DialogResult.OK)
         {
             this.fs = ifb.Values["Sampling Frequency(Fs)"];
             Plot();
         }
     }
                 );
     AddMenuItem("Frequency", "Spectral Density [fs,A]", delegate
     {
         InputFormBase ifb = InputFormFactory.GetInstance("SD Parameters",
                                                          "Sampling Frequency(Fs)", "Max Signal Amplitude(A0)");
         if (ifb.ShowDialog() == DialogResult.OK)
         {
             this.fs            = ifb.Values["Sampling Frequency(Fs)"];
             this.max_amplitude = ifb.Values["Max Signal Amplitude(A0)"];
             Plot();
         }
     }
                 );
 }
Beispiel #2
0
 public SingleResample(ReportNode rp)
     : base(rp)
 {
     AddMenuItem("Wave functions", "Resample", delegate {
         InputFormBase ifb = InputFormFactory.GetInstance("Resample parameters", "X-Step",
                                                          "X-Delay{0}",
                                                          "X-Uncertainty{1e-10}");
         if (ifb.ShowDialog() == DialogResult.OK)
         {
             x_step   = ifb.Values["X-Step"];
             x_delay  = ifb.Values["X-Delay{0}"];
             x_uncert = ifb.Values["X-Uncertainty{1e-10}"];
             Plot();
         }
     });
 }
Beispiel #3
0
        public SingleDynamicParameters(ReportNode rp) : base(rp)
        {
            AddMenuItem("Calculate", "Dynamic Parameters (SNDR SNR ENOB) [fs,f0,fmin,fmax]", delegate
            {
                InputFormBase ifb = InputFormFactory.GetInstance("Frequency Information [fs,f0,fmin,fmax]",
                                                                 "Sampling Frequency(Fs)",
                                                                 "Input Frequency(F0)",
                                                                 "Bandlimit noise, lower limit(Fmin)",
                                                                 "Bandlimit noise, high limit(Fmax)");

                if (ifb.ShowDialog() == DialogResult.OK)
                {
                    this.fs   = ifb.Values["Sampling Frequency(Fs)"];
                    this.f0   = ifb.Values["Input Frequency(F0)"];
                    this.fmin = ifb.Values["Bandlimit noise, lower limit(Fmin)"];
                    this.fmax = ifb.Values["Bandlimit noise, high limit(Fmax)"];
                    Plot();
                }
            });

            AddMenuItem("Calculate", "Dynamic Parameters (SNDR SNR ENOB) [fs,f0]", delegate
            {
                InputFormBase ifb = InputFormFactory.GetInstance("Frequency Information [fs,f0]",
                                                                 "Sampling Frequency(Fs)",
                                                                 "Input Frequency(F0)");

                if (ifb.ShowDialog() == DialogResult.OK)
                {
                    this.fs   = ifb.Values["Sampling Frequency(Fs)"];
                    this.f0   = ifb.Values["Input Frequency(F0)"];
                    this.fmin = -1;
                    this.fmax = -1;
                    Plot();
                }
            });
        }