void V_Start_Test(object sender, RoutedEventArgs e) { RespiratoryCalc Calculations_Test = new RespiratoryCalc(); Example_Flow.Clear(); Example_O2.Clear(); Example_CO2.Clear(); int TE = 0; int TI = 0; double texp = 0, tins = 0; //for (int o = 0; o < axis1AEYData.Count(); o++) //{ // _dataFlowA_test = axis1AEYData[o]; // _dataO2A_test = axis2AEYData[o]; // _dataCO2A_test = axis3AEYData[o]; // Example_Flow.AddXY2(axis1EXData[o], _dataFlowA_test); // Example_O2.AddXY2(axis2EXData[o], _dataO2A_test); // Example_CO2.AddXY2(axis3EXData[o], _dataCO2A_test); //} //for (int o = 0; o < axis1EYData.Count(); o++) //{ // _dataFlow_test = axis1EYData[o]; // _dataO2_test = axis2EYData[o]; // _dataCO2_test = axis3EYData[o]; // Example_Flow.AddXY(axis1EXData[o], _dataFlow_test); // Example_O2.AddXY(axis2EXData[o], _dataO2_test); // Example_CO2.AddXY(axis3EXData[o], _dataCO2_test); //} for (int i = 0; i < Convert.ToInt32(axis2EYData.Count()); i++) { //Запись текущих значений в соответствующие переменные _dataFlow_test = axis1EYData[i]; _dataO2_test = axis2EYData[i]; _dataCO2_test = axis3EYData[i]; if (_dataCO2_test < 0) { _dataCO2_test = 0; } if (_dataCO2A_test < 0) { _dataCO2A_test = 0; } //Добавление текущего значения на графики // Example_Flow.AddXY2(axis1MEXData[i], _dataFlow_test); //Example_O2.AddXY2(axis2MAEXData[i], _dataO2_test); // Example_CO2.AddXY2(axis3MAEXData[i], _dataCO2_test); Example_Flow.AddXY(axis1EXData[i], _dataFlow_test); Example_O2.AddXY(axis2EXData[i], _dataO2_test); Example_CO2.AddXY(axis3EXData[i], _dataCO2_test); _t_test = axis1EXData[i]; Calculations_Test.t = axis1EXData[i]; Calculations_Test.CO2DATA.Add(_dataCO2_test); Calculations_Test.Time.Add(axis1EXData[i]); if (_dataFlow_test >= ZeroLine_test && _kFlow_test <= ZeroLine_test && Calculations_Test.FECO2DATA.Count() >= 10) //End Expiration { _t2_test = axis1EXData[i]; //Установка времени конца выдоха //Основные вычисления Calculations_Test.EndExpiration(_kFlow_test, _kO2, _kCO2, SampleTime05, ZeroLine_test, _t0_test, _t2_test); //Добавление значение на график "Петля Обьем-Поток" Test_LoopFlowVolume.AddXY(Vcurrent += Calculations_Test._Flowexp, -_dataFlowA_test); //MessageBox.Show($"{_t_test}\n{Calculations_Test._FETCO2} \n {Calculations_Test._FETO2}"); //Добавление значение в таблицу с результатами и в общую Calculations_TF.Add(new RespiratoryCalc_C() { _T = _t_test, _Status = Calculations_Test.status, _DataFlow = Math.Abs(_dataFlow_test), _kDataFlow = Math.Abs(_kFlow_test), _Flowins = Calculations_Test._Flowins, _Flowexp = Calculations_Test._Flowexp, _O2ins = _dataCO2_test, _O2exp = Calculations_Test._O2, _VO2ins = Calculations_Test._VO2ins, _VO2exp = Calculations_Test._VO2exp, _CO2ins = Calculations_Test._CO2, _CO2exp = Calculations_Test._CO2A, _VCO2ins = Calculations_Test._VCO2ins, _VCO2exp = Calculations_Test._VCO2exp, _dCO2 = Calculations_Test._dCO2, _FETCO2 = Calculations_Test._FETCO2, _dO2 = Calculations_Test._dO2, _FETO2 = Calculations_Test._FETO2 }); Calculations_T.Add(new RespiratoryCalc_C() { _BN = Calculations_Test._bN, _T2 = _t2_test, _VT = Calculations_Test._VT, _VE = Calculations_Test._VE, _VO2 = Calculations_Test._VO2, _VO2_s = Calculations_Test._VO2_s, _VO2_HT = Calculations_Test._VO2_HT, _VO2_ET = Calculations_Test._VO2_ET, _VCO2 = Calculations_Test._VCO2, _VCO2_s = Calculations_Test._VCO2_s, _VCO2_HT = Calculations_Test._VCO2_HT, _VCO2_ET = Calculations_Test._VCO2_ET, _FETO2 = Calculations_Test._FETO2, _FETCO2 = Calculations_Test._FETCO2, _BF = Calculations_Test._BF, _RER = Calculations_Test._RER }); //Добавление значений на 4 панельный график Вассерману Test_VO2vsVCO2.AddXY(_t_test, Calculations_Test._VO2_ET); Test_VO2vsVCO2.AddXY2(_t_test, Calculations_Test._VCO2_ET); Test_EQO2vsEQCO2.AddXY(_t_test, Calculations_Test._EQO2); Test_EQO2vsEQCO2.AddXY2(_t_test, Calculations_Test._EQCO2); Test_VEvsW.AddXY(_t_test, Calculations_Test._VE); Test_FETO2vsFETCO2.AddXY(_t_test, Calculations_Test._FETO2); Test_FETO2vsFETCO2.AddXY2(_t_test, Calculations_Test._FETCO2); //Добавление на панель { //Добавление на 2 панель значений на 1 вкладку Test_VEBOX.Text = $"VE = {String.Format("{0:0.00}",Calculations_Test._VE)} [Л/Мин];"; Test_VABOX.Text = $"VA = {String.Format("{0:0.00}", Calculations_Test._VA)} [Л/Мин];"; Test_VDBOX.Text = $"VD = {String.Format("{0:0.00}", Calculations_Test._VD)} [Л];"; Test_VO2BOX.Text = $"VO2 ={String.Format("{0:0.00}", Calculations_Test._VO2)} [Л/Мин] "; Test_VCO2BOX.Text = $"VCO2 = {String.Format("{0:0.00}", Calculations_Test._VCO2)} [Л/Мин]"; Test_VO2_HTBOX.Text = $"VO2_HT ={String.Format("{0:0.00}", Calculations_Test._VO2_HT)} [Л/Мин]"; Test_VCO2_HTBOX.Text = $"VCO2_HT ={String.Format("{0:0.00}", Calculations_Test._VCO2_HT)} [Л/Мин]"; Test_VO2_ETBOX.Text = $"VO2_ET ={String.Format("{0:0.00}", Calculations_Test._VO2_ET)} [Л/Мин]"; Test_VCO2_ETBOX.Text = $"VCO2_ET ={String.Format("{0:0.00}", Calculations_Test._VCO2_ET)} [Л/Мин]"; //Test_VO2predBOX.Text = $"VO2pred ={Calculations_Test._VO2pred} [Л/Мин]"; Test_FETO2BOX.Text = $"FETO2 = {String.Format("{0:0.00}", Calculations_Test._FETO2)} [Vol.%]"; Test_FETCO2BOX.Text = $"FETCO2 = {String.Format("{0:0.00}", Calculations_Test._FETCO2)} [Vol.%]"; Test_PAO2BOX.Text = $"PAO2 = {String.Format("{0:0.00}", Calculations_Test._PAO2)} [Мм.рт.ст.]"; Test_PACO2BOX.Text = $"PACO2 = {String.Format("{0:0.00}", Calculations_Test._PACO2)} [Мм.рт.ст.]"; //Test_PaO2BOX.Text = $"PaO2 = {Calculations_Test._PaO2} [mm Hg]"; Test_PaCO2BOX.Text = $"PaCO2 = {String.Format("{0:0.00}", Calculations_Test._PaCO2)} [Мм.рт.ст.]"; Test_PECO2BOX.Text = $"PECO2 = {String.Format("{0:0.00}", Calculations_Test._PECO2)} [Мм.рт.ст.]"; //Test_Aa_DO2BOX.Text = $"Aa_DO2 = {Calculations_Test._Aa_DO2} [mm Hg]"; //Test_aET_DCO2BOX.Text = $"aET_DCO2 = {Calculations_Test._aET_DCO2} [mm Hg]"; //Test_DLO2BOX.Text = $"DLO2 = {Calculations_Test._DLO2}"; Test_RERBOX.Text = $"RER = {String.Format("{0:0.00}", Calculations_Test._RER)}"; Test_EQO2BOX.Text = $"EQO2 = {String.Format("{0:0.00}", Calculations_Test._EQO2)}"; Test_EQCO2BOX.Text = $"EQCO2 = {String.Format("{0:0.00}", Calculations_Test._EQCO2)}"; Test_METSBOX.Text = $"METS = {String.Format("{0:0.00}", Calculations_Test._METS)}"; Test_BRBOX.Text = $"BR = {String.Format("{0:0.00}", Calculations_Test._BF)} [Дых./Мин]"; Test_TimeBOX.Text = $"Time = {_t_test} [C]"; //Добавление на 2 панель значений на 2 вкладку Test_FEV05BOX.Text = $"FEV05 = {String.Format("{0:0.00}", loopVolumeFlow.FEV05)} [Л];"; Test_FEV1BOX.Text = $"FEV1 = {String.Format("{0:0.00}", loopVolumeFlow.FEV1)} [Л];"; Test_FEV3BOX.Text = $"FEV3 = {String.Format("{0:0.00}", loopVolumeFlow.FEV3)} [Л];"; Test_PEFBOX.Text = $"PEF = {String.Format("{0:0.00}", loopVolumeFlow.PEF)} [Л/C];"; Test_PIFBOX.Text = $"PIF = {String.Format("{0:0.00}", loopVolumeFlow.PIF)} [Л/C];"; Test_FEF25BOX.Text = $"FEF25 = {String.Format("{0:0.00}", loopVolumeFlow.FEF25)} [Л/C];"; Test_FEF50BOX.Text = $"FEF50 = {String.Format("{0:0.00}", loopVolumeFlow.FEF50)} [Л/C];"; Test_FEF75BOX.Text = $"FEF75 = {String.Format("{0:0.00}", loopVolumeFlow.FEF75)} [Л/C];"; Test_FIF25BOX.Text = $"FIF25 = {String.Format("{0:0.00}", loopVolumeFlow.FIF25)} [Л/C];"; Test_FIF50BOX.Text = $"FIF50 = {String.Format("{0:0.00}", loopVolumeFlow.FIF50)} [Л/C];"; Test_FIF75BOX.Text = $"FIF75 = {String.Format("{0:0.00}", loopVolumeFlow.FIF75)} [Л/C];"; Test_MEF25_75BOX.Text = $"MEF25_75 = {String.Format("{0:0.00}", loopVolumeFlow.MEF25_75)} [Л/C];"; Test_VTBOX.Text = $"VT = {String.Format("{0:0.00}", loopVolumeFlow.VT)} [Л];"; } ////Обнуление буферных значений //Example_Flow.SetOfAxis(_t0_test, _t2_test, -Calculations_Test.FlowexpDATA.Max() - 0.5, Calculations_Test.FlowinsDATA.Max() + 0.5, 0.05, Calculations_Test.FlowinsDATA.Max() / 5); //Example_O2.SetOfAxis(_t0_test, _t2_test, 15, 23, 0.05, 0.5); //Example_CO2.SetOfAxis(_t0_test, _t2_test, 0, 7, 0.05, 0.5); ////MessageBox.Show($"{Calculations_Test._bN } {T_status} {_t1_test}"); if (Calculations_Test._bN == T_status + 21) { T_status++; MessageBox.Show($"{Calculations_Test._bN } {_t0_test} {tins} {_t1_test} {texp} {_t2_test} "); break; } Test_LoopFlowVolume.Clear(); Calculations_Test.ClearBuffer(Calculations_Test.status); _t0_test = _t2_test; TE = 0; TI = 0; } else if (_dataFlow_test <= ZeroLine_test && _kFlow_test >= ZeroLine_test && Calculations_Test.FICO2DATAbuf.Count() >= 10)//End inspiration { _t1_test = _t_test; //Основные вычисления Calculations_Test.EndInspiration(_kFlow_test, _kO2, _kCO2, SampleTime05, ZeroLine_test, tins); //Добавление значение на график "Петля Обьем-Поток" Test_LoopFlowVolume.AddXY(Vcurrent -= Calculations_Test._Flowins, -_dataFlowA_test, Calculations_Test._Flowins); //Добавление значение в таблицу Calculations_TF.Add(new RespiratoryCalc_C() { _T = _t_test, _Status = Calculations_Test.status, _DataFlow = Math.Abs(_dataFlow_test), _kDataFlow = Math.Abs(_kFlow_test), _Flowins = Calculations_Test._Flowins, _Flowexp = Calculations_Test._Flowexp, _O2ins = _dataCO2_test, _O2exp = Calculations_Test._O2, _VO2ins = Calculations_Test._VO2ins, _VO2exp = Calculations_Test._VO2exp, _CO2ins = Calculations_Test._CO2, _CO2exp = Calculations_Test._CO2, _VCO2ins = Calculations_Test._VCO2ins, _VCO2exp = Calculations_Test._VCO2exp, _dCO2 = Calculations_Test._dCO2, _FETCO2 = Calculations_Test._FETCO2, _dO2 = Calculations_Test._dO2, _FETO2 = Calculations_Test._FETO2 }); } else if (_dataFlow_test >= 0.3)//Inspiration flow { if (TI == 0) { tins = _t_test; TI++; } //Основные вычисления Calculations_Test.Inspiration(_kFlow_test, _kO2, _kCO2, SampleTime05, ZeroLine_test, tins); //Добавление значение на график "Петля Обьем-Поток" Test_LoopFlowVolume.AddXY(Vcurrent -= Calculations_Test._Flowins, -_kFlow_test, Calculations_Test._Flowins); //Добавление значение в таблицу Calculations_TF.Add(new RespiratoryCalc_C() { _T = _t_test, _Status = Calculations_Test.status, _DataFlow = Math.Abs(_dataFlow_test), _kDataFlow = Math.Abs(_kFlow_test), _Flowins = Calculations_Test._Flowins, _Flowexp = Calculations_Test._Flowexp, _O2ins = _dataCO2_test, _O2exp = Calculations_Test._O2, _VO2ins = Calculations_Test._VO2ins, _VO2exp = Calculations_Test._VO2exp, _CO2ins = Calculations_Test._CO2, _CO2exp = Calculations_Test._CO2A, _VCO2ins = Calculations_Test._VCO2ins, _VCO2exp = Calculations_Test._VCO2exp, _dCO2 = Calculations_Test._dCO2, _FETCO2 = Calculations_Test._FETCO2, _dO2 = Calculations_Test._dO2, _FETO2 = Calculations_Test._FETO2 }); } else if (_dataFlow_test <= -0.3)//Expiration { if (TE == 0) { texp = _t_test; TE++; } //Основные вычисления Calculations_Test.Expiration(_kFlow_test, _kO2, _kCO2, SampleTime05, ZeroLine_test, texp); //Добавление значение на график "Петля Обьем-Поток" Test_LoopFlowVolume.AddXY(Vcurrent += Calculations_Test._Flowexp, -_kFlow_test, Calculations_Test._Flowins); //Добавление на панель Calculations_TF.Add(new RespiratoryCalc_C() { _T = _t_test, _Status = Calculations_Test.status, _DataFlow = Math.Abs(_dataFlow_test), _kDataFlow = Math.Abs(_kFlow_test), _Flowins = Calculations_Test._Flowins, _Flowexp = Calculations_Test._Flowexp, _O2ins = _dataCO2_test, _O2exp = Calculations_Test._O2, _VO2ins = Calculations_Test._VO2ins, _VO2exp = Calculations_Test._VO2exp, _CO2ins = Calculations_Test._CO2, _CO2exp = Calculations_Test._CO2A, _VCO2ins = Calculations_Test._VCO2ins, _VCO2exp = Calculations_Test._VCO2exp, _dCO2 = Calculations_Test._dCO2, _FETCO2 = Calculations_Test._FETCO2, _dO2 = Calculations_Test._dO2, _FETO2 = Calculations_Test._FETO2 }); } _kFlow_test = _dataFlow_test; _kFlowA_test = _dataFlowA_test; _kO2 = _dataO2_test; _kCO2 = _dataCO2_test; // Запись данных в файл using (StreamWriter sw = new StreamWriter(@"C:\SPIRODATE\Log.txt", true, System.Text.Encoding.Default)) { sw.WriteLine($"{_dataFlow_test}-{_dataO2_test}-{_dataCO2_test}-{_t_test}-{Calculations_Test._bN}"); sw.Close(); } } }
public MainWindow() { InitializeComponent(); Calculations = new RespiratoryCalc(); DataContext = this; chart.BackColor = System.Drawing.Color.GhostWhite; //Инициализация Графиков { axis1YData = WorkWithData.DataFromTXT("data1.txt"); axis1XData = new List <double>() { }; double t = 0; //Какое-то начальное время исследования //по оси X - это график времени с шагом SampleTime = 0,1 foreach (double i in axis1YData) { axis1XData.Add(t); t += SampleTime; } FlowTime = new GraphicsInit(chart, "Default1", "Series1", 0); FlowTime.SetOfAxis(0, 12, -10, 10, 0.5, 1, "Время [С]", "V(t) [Л/С]"); FlowTime.CommonLine("Series11", 0, 20, 0, 0); axis2YData = WorkWithData.DataFromTXT("data2.txt"); axis2XData = new List <double>() { }; double t1 = 0; foreach (double i in axis2YData) { axis2XData.Add(t1); t1 += SampleTime; } O2Time = new GraphicsInit(chart, "Default2", "Series2", 1); O2Time.SetOfAxis(0, 12, 13, 21, 0.5, 1, "Время [С]", "FEO2(t) / FIO2(t) [Vol.%]"); axis3YData = WorkWithData.DataFromTXT("data3.txt"); axis3XData = new List <double>() { }; double t2 = 0; foreach (double i in axis3YData) { axis3XData.Add(t2); t2 += 0.1; } CO2Time = new GraphicsInit(chart, "Default3", "Series3", 2); CO2Time.SetOfAxis(0, 12, 0, 7, 0.5, 1, "Время [С]", "FECO2(t) / FICO2(t) [Vol.%]"); ExampleCO2VD = new GraphicsInit(ExampleCO2_VD, "Default4", "1", "2", "3", 0); ExampleCO2VD.DashLine_S("4"); ExampleCO2VD.SetOfAxis(-1, 4, 0, 7, 0.1, 1, "Время [С]", "FECO2(t) [Vol.%]"); axis1EYData = WorkWithData.DataFromTXT("data1E.txt"); axis1EXData = new List <double>() { }; double tE0 = 0; //Какое-то начальное время исследования //по оси X - это график времени с шагом SampleTime = 0,1 foreach (double i in axis1EYData) { axis1EXData.Add(tE0); tE0 += SampleTime05; } Example_Flow = new GraphicsInit(Test, "Default0", "Series0", "Series01", 0); Example_Flow.SetOfAxis(0, 130, -5, 3, 1, 0.5, "Время [С]", "V(t) [Л/С]"); //Example_Flow.AddDataXY(axis1EXData, axis1EYData); //Example_Flow.AddSeries("Mean0", System.Drawing.Color.Purple); //Example_Flow.AddDataXY("Mean0", axis1EXData, Filter.MoveAverage(axis1EYData,8)); //axis1AEYData = Filter.MoveAverage(axis1EYData, 10); Filter.Meddiana(axis1EYData, 0.05, 9, out axis1MEYData, out axis1MEXData); axis2EYData = WorkWithData.DataFromTXT("data2E.txt"); axis2EXData = new List <double>() { }; double tE1 = 0; //Какое-то начальное время исследования //по оси X - это график времени с шагом SampleTime = 0,1 foreach (double i in axis2EYData) { axis2EXData.Add(tE1); tE1 += SampleTime05; } Example_O2 = new GraphicsInit(Test, "Default1", "Series1", "Series12", 1); Example_O2.SetOfAxis(0, 130, 16.5, 22.5, 1, 0.5, "Время [С]", "FEO2(t) / FIO2(t) [Vol.%]"); //Example_O2.AddDataXY(axis2EXData, axis2EYData); //Example_O2.AddSeries("Mean1", System.Drawing.Color.Purple); //Example_O2.AddDataXY("Mean1", axis2EXData, Filter.MoveAverage(axis2EYData,16)); //axis2AEYData = Filter.MoveAverage(axis2EYData, 12); Filter.Meddiana(axis2EYData, 0.05, 3, out axis2MEYData, out axis2MEXData); Filter.MoveAverage(axis2MEYData, axis2MEXData, out axis2MAEYData, out axis2MAEXData, 3); axis3EYData = WorkWithData.DataFromTXT("data3E.txt"); axis3EXData = new List <double>() { }; double tE2 = 0; //Какое-то начальное время исследования //по оси X - это график времени с шагом SampleTime = 0,1 foreach (double i in axis3EYData) { axis3EXData.Add(tE2); tE2 += SampleTime05; } Example_CO2 = new GraphicsInit(Test, "Default2", "Series2", "Series23", 2); Example_CO2.SetOfAxis(0, 130, -1, 5.5, 1, 0.5, "Время [С]", "FECO2(t) / FICO2(t) [Vol.%]"); //Example_CO2.AddDataXY(axis3EXData, axis3EYData); //Example_CO2.AddSeries("Mean2", System.Drawing.Color.Purple); //Example_CO2.AddDataXY("Mean2", axis3EXData, Filter.MoveAverage(axis3EYData,16)); //axis3AEYData = Filter.MoveAverage(axis3EYData, 10); Filter.Meddiana(axis3EYData, 0.05, 3, out axis3MEYData, out axis3MEXData); Filter.MoveAverage(axis3MEYData, axis3MEXData, out axis3MAEYData, out axis3MAEXData, 3); LoopFlowVolume = new GraphicsInit(FlowVolumeLoop, "Default1", "LoopFlowVolume", 0); LoopFlowVolume.SetOfAxis(0, 7, -10, 10, 0.5, 1, "Обьем [Л]", "Поток [Л/С]"); LoopFlowVolume.CommonLine("Series1", 0, 7, 0, 0); VO2vsVCO2 = new GraphicsInit(VO2_VCO2, "Default1", "1", "2", 0); VO2vsVCO2.SetOfAxis(0, 5, 0, 5, 0.1, 0.2, "Time", "VO2 [mLiters/Minute]"); VO2vsVCO2.AddAxisY2(0, 5, 0.2, "VCO2 [mLiters/Minute]"); VO2vsVCO2.AddXY(2, 0); VO2vsVCO2.AddXY(2, 4); VO2vsVCO2.AddXY2(0, 0); VO2vsVCO2.AddXY2(2, 2); EQO2vsEQCO2 = new GraphicsInit(EQO2_EQCO2, "Default1", "1", "2", 0); EQO2vsEQCO2.SetOfAxis(0, 5, 0, 5, 0.1, 0.2, "Time", "EQO2"); EQO2vsEQCO2.AddAxisY2(0, 5, 0.2, "EQCO2"); EQO2vsEQCO2.AddXY(2, 0); EQO2vsEQCO2.AddXY(2, 4); EQO2vsEQCO2.AddXY2(0, 0); EQO2vsEQCO2.AddXY2(2, 2); VEvsW = new GraphicsInit(VE_W, "Default1", "1", "2", 0); VEvsW.SetOfAxis(0, 5, 0, 5, 0.1, 0.2, "Time", "VE [Liters/Seconds]"); VEvsW.AddAxisY2(0, 5, 0.2, "W [Watt]"); VEvsW.AddXY(2, 0); VEvsW.AddXY(2, 4); VEvsW.AddXY2(0, 0); VEvsW.AddXY2(2, 2); FETO2vsFETCO2 = new GraphicsInit(FETO2_FETCO2, "Default1", "1", "2", 0); FETO2vsFETCO2.SetOfAxis(0, 5, 0, 5, 0.1, 0.2, "Time", "FETO2 [Vol.%]"); FETO2vsFETCO2.AddAxisY2(0, 5, 0.2, "FETCO2 [Vol.%]"); FETO2vsFETCO2.AddXY(2, 0); FETO2vsFETCO2.AddXY(2, 4); FETO2vsFETCO2.AddXY2(0, 0); FETO2vsFETCO2.AddXY2(2, 2); Test_LoopFlowVolume = new GraphicsInit(Test_FlowVolumeLoop, "Default1", "LoopFlowVolume", 0); Test_LoopFlowVolume.SetOfAxis(2, 9, -7, 7, 0.5, 1, "Обьем [Л]", "Поток [Л/С]"); Test_LoopFlowVolume.CommonLine("1", 0, 12, 0, 0); Test_VO2vsVCO2 = new GraphicsInit(Test_VO2_VCO2, "Default1", "1", "2", 0); Test_VO2vsVCO2.SetOfAxis(0, 130, 0, 5, 10, 0.5, "Время", "VO2 [Литров / Минута]"); Test_VO2vsVCO2.AddAxisY2(0, 5, 0.5, "VCO2 [Литров / Минута]"); Test_EQO2vsEQCO2 = new GraphicsInit(Test_EQO2_EQCO2, "Default1", "1", "2", 0); Test_EQO2vsEQCO2.SetOfAxis(0, 130, 0, 70, 10, 10, "Время", "EQO2"); Test_EQO2vsEQCO2.AddAxisY2(0, 70, 10, "EQCO2"); Test_VEvsW = new GraphicsInit(Test_VE_W, "Default1", "1", "2", 0); Test_VEvsW.SetOfAxis(0, 130, 0, 70, 10, 5, "Время", "VE [Литров / Секунда]"); //Test_VEvsW.AddAxisY2(0, 70, 5, "W [Watt]"); Test_FETO2vsFETCO2 = new GraphicsInit(Test_FETO2_FETCO2, "Default1", "1", "2", 0); Test_FETO2vsFETCO2.SetOfAxis(0, 130, 0, 24, 5, 2, "Время", "FETO2 [Vol.%]"); Test_FETO2vsFETCO2.AddAxisY2(0, 24, 2, "FETCO2 [Vol.%]"); //Обозначаем соответствующие столбики на 1 панели FlowText.Text = "Flow (Vins,Vexp)"; O2Text.Text = "O2"; CO2Text.Text = "CO2"; TestText.Text = "Status"; VO2Text.Text = "VO2"; VCO2Text.Text = "VCO2"; CalculationsText.Text = "\nCalculations:"; DerivateText.Text = "Derivate"; } WorkWithData.CreateDirectoryToTargetPathWWD001(_path); using (StreamWriter sw = new StreamWriter(@"C:\SPIRODATE\Log.txt", false, System.Text.Encoding.Default)) { sw.WriteLine("Flow VO2 VCO2 T BN"); sw.Close(); } }