/// <summary>
        /// Конструктор
        /// </summary>
        public PS5000ABlockForm(double w0_, double w1_, int l_, int Scount = 8)
        {
            InitializeComponent();
            w0           = w0_;
            w1           = w1_;
            wcount       = l_;
            sourcesCount = Scount;

            //     comboRangeA.DataSource = System.Enum.GetValues(typeof(Imports.Range));
            toolStripStatusLabel1.Text = "Готов к работе";
            toolStripStatusLabel2.Text = "";

            timer1.Interval = 300;
            timer1.Tick    += new EventHandler(Timer1_Tick);

            SetDirects();
            SetParams();
            InfoGet();

            this.FormClosing += (object o, FormClosingEventArgs aa) =>
            {
                GetParams();
                Expendator.WriteStringInFile(Path.Combine(globalbase, "Описание.txt"), textBox23.Text);
            };

            this.FormClosed += new FormClosedEventHandler((object o, FormClosedEventArgs a) =>
            {
                FurierTransformer.Dispose();
            });

            Hides();
        }
        private void CreateFurierTransform(double f0, double f1, int sc)
        {
            FurierTransformer.w_0 = f0 * 1e6;
            FurierTransformer.w_m = f1 * 1e6;
            double Freq(double w) => w * (1e6 / 2.0 / Math.PI);

            f0 = Freq(f0); f1 = Freq(f1);
            int count_approx = sc;

            FurierTransformer.t_0     = 0;
            FurierTransformer.count_t = (CountSum);
            FurierTransformer.t_n     = dt * FurierTransformer.count_t;
            FurierTransformer.dt      = dt;
            FurierTransformer.f_0     = f0;
            FurierTransformer.f_m     = f1;
            FurierTransformer.count_f = count_approx;
            FurierTransformer.count_w = count_approx;
            FurierTransformer.df      = (f1 - f0) / (sc - 1);
            FurierTransformer.dw      = (FurierTransformer.w_m - FurierTransformer.w_0) / ((double)FurierTransformer.count_w - 1);

            FurierTransformer.n_avg    = (CountSum) - 2;
            FurierTransformer.n_ignore = n_ignore;

            FurierTransformer.CreateNewGen();
        }
 /// <summary>
 /// Отвечает за единичное преобразование Фурье из одного файла в другой
 /// </summary>
 /// <param name="from"></param>
 /// <param name="to"></param>
 /// <param name="progress"></param>
 private void MakeTransform(string from, string to, IProgress <int> progress, string to2)
 {
     FurierTransformer.LoadIn(from);
     //FurierTransformer.GetSplainFT_old(progress);
     FurierTransformer.GetSplainFT_new(progress);
     FurierTransformer.SaveOut(to);
     if (FromDiff)
     {
         FurierTransformer.SaveOut(to2);
     }
 }