 //public void initSensorCalData(double []sensorM, double [] sensorB)
        //{
        //    sensorM[0] = 0.00001196;  //Pressure Sensor A, Channel 12, Tank Bottom Pressure Sensor 
        //    sensorB[0] = 0.00098618;
        //    sensorM[1] = 0.00000993;  //Pressure Sensor B, Channel 11, Engine top pressure sensor 
        //    sensorB[1] = 0.00067037;
        //    sensorM[2] = 0.0000108;   //Pressure Sensor C, Channel 10, 
        //    sensorB[2] = 0.001769202;
        //    sensorM[3] = 0.003101659562;  // Pressure Sensor D, Channel 13, Tank Top,
        //    sensorB[3] = 0.4003292;
        //    sensorM[4] = 0.00000993;      // Raw Load Cell, Channel 14
        //    sensorB[4] = 0.0003450862;
        //    sensorM[5] = 0.0022580353;   //Load Cell x 250, Channel 15
        //    sensorB[5] = 0.0862715513;
        //}

		 public void initCalDataBoard1(double[] ma, UInt32[] b)
        {
           
            ma[0] = 0.910801;
            ma[1] = 0.914047;
            ma[2] = 0.912413;
            ma[3] = 0.913650;
            ma[4] = 0.906302;
            ma[5] = 0.911873;
            ma[6] = 0.906871;
            ma[7] = 0.911362;


            b[0] = 0xFFFBFE; //0x3b5;
            b[1] = 0x6b0;
            b[2] = 0xFFF153; // 0xd1c; 
            b[3] = 0xFFFBF0; // 0x40f;
            b[4] = 0x1c82;
            b[5] = 0xFFC807; // 3308;   
            b[6] = 0x1f95;
            b[7] = 0xFFF736; // 0x7c9;
        }



		   //public void serializeCalData(double[] ma, UInt32[] b)
        public void serializeCalData()
        {

            string fileName = @"D:/ERPS/Data/DaqCal.json";
            FileStream fileStream = new FileStream(fileName, FileMode.Create, FileAccess.Write);

            DaqCal Cal = new DaqCal();
            Cal.ma[0] = 0.910801;
            Cal.ma[1] = 0.914047;
            Cal.ma[2] = 0.912413;
            Cal.ma[3] = 0.913650;
            Cal.ma[4] = 0.906302;
            Cal.ma[5] = 0.911873;
            Cal.ma[6] = 0.906871;
            Cal.ma[7] = 0.911362;


            Cal.b[0] = 0xFFFBFE; 
            Cal.b[1] = 0x6b0;
            Cal.b[2] = 0xFFF153;  
            Cal.b[3] = 0xFFFBF0; 
            Cal.b[4] = 0x1c82;
            Cal.b[5] = 0xFFC807;  
            Cal.b[6] = 0x1f95;
            Cal.b[7] = 0xFFF736; 

            string json = Newtonsoft.Json.JsonConvert.SerializeObject(Cal);


            byte[] info = new UTF8Encoding(true).GetBytes(json);
            fileStream.Write(info, 0, info.Length);

 
            fileStream.Close();

        }

		 pressure1 = (calVoltageChan[3] - sensorB[3]) / sensorM[3]; //DAQ Channel 13
                pressure2 = (calVoltageChan[4] - sensorB[0]) / sensorM[0];  //DAQ Channel 12
                pressure3 = (calVoltageChan[5] - sensorB[1]) / sensorM[1]; //DAQ Channel 11
                pressure4 = (calVoltageChan[6] - sensorB[2]) / sensorM[2]; //DAQ Channel 10