//Excel Functions
        private void AppendDataBuffer()
        {
            PG300ExcelRowModel pg300ExcelRow = new PG300ExcelRowModel();

            pg300ExcelRow.date = DateTime.Now.ToShortDateString();
            pg300ExcelRow.time = DateTime.Now.ToLongTimeString();
            //for(int i = 0; i < pg300Model.channelList)
            //pg300ExcelRow.pg300Channels
        }
        private void ParseR202Response(string[] InputBuffer)
        {
            int    DecimalPlaces = 0x00;
            string DataValue     = "";
            double value         = 0x00;

            /*0. kelime error status */
            if (!InputBuffer[0].Equals("00"))
            {
            }
            /*1. ile 11.kelimeler arası cihaz diagnostics bilgileri */
            //NDIR Correction Temperature
            try
            {
                pg300Model.diagnosticsModel.NDIRCorrectionTemperature = Double.Parse(InputBuffer[2].Substring(1));
            }
            catch (Exception e)
            {
            }
            //O2 Control Temperature
            try
            {
                pg300Model.diagnosticsModel.O2ControlTemperature = Double.Parse(InputBuffer[4].Substring(1));
            }
            catch (Exception e)
            {
                pg300Model.diagnosticsModel.O2ControlTemperature = -1;
            }
            //CLA Control Temperature
            try
            {
                pg300Model.diagnosticsModel.CLAControlTemperature = Double.Parse(InputBuffer[5].Substring(1));
            }
            catch (Exception e)
            {
                pg300Model.diagnosticsModel.CLAControlTemperature = -1;
            }
            //NDIR Control Temperature
            try
            {
                pg300Model.diagnosticsModel.NDIRControlTemperature = Double.Parse(InputBuffer[6].Substring(1));
            }
            catch (Exception e)
            {
                pg300Model.diagnosticsModel.NDIRControlTemperature = -1;
            }
            //Internal Temperature
            try
            {
                pg300Model.diagnosticsModel.InternalTemperature = Double.Parse(InputBuffer[7].Substring(1));
            }
            catch (Exception e)
            {
                pg300Model.diagnosticsModel.InternalTemperature = -1;
            }
            //Electronic Cooler Temperature
            try
            {
                pg300Model.diagnosticsModel.ElectronicCoolerTemperature = Double.Parse(InputBuffer[8].Substring(1));
            }
            catch (Exception e)
            {
                pg300Model.diagnosticsModel.ElectronicCoolerTemperature = -1;
            }
            //Atmospheric Pressure
            try
            {
                pg300Model.diagnosticsModel.AtmosphericPressure = Double.Parse(InputBuffer[9].Substring(1));
            }
            catch (Exception e)
            {
                pg300Model.diagnosticsModel.AtmosphericPressure = -1;
            }
            //FlowRate
            try
            {
                pg300Model.diagnosticsModel.FlowRate = Double.Parse(InputBuffer[10].Substring(1));
            }
            catch (Exception e)
            {
                pg300Model.diagnosticsModel.FlowRate = -1;
            }

            PG300ExcelRowModel pg300ExcelRow = new PG300ExcelRowModel();

            pg300ExcelRow.date          = DateTime.Now.ToShortDateString();
            pg300ExcelRow.time          = DateTime.Now.ToLongTimeString();
            pg300ExcelRow.pg300Diag     = pg300Model.diagnosticsModel;
            pg300ExcelRow.pg300Channels = pg300Model.channelList;
            ExcelManager.Instance.AppendLog(AppConstants.PG300_TYPE, pg300ExcelRow);

            pageInterface.ReceiveR202DataFromManager(pg300Model.diagnosticsModel);
        }