Пример #1
0
 public void ParseAnalogIPDetails(CatIdList catId)
 {
     try
     {
         if (catId.AnalogIpTests != null)
         {
             if (catId.AnalogIpTests.Count != 0)
             {
                 CALIB_1mA_CNT_PI  = catId.AnalogIpTests[0].CALIB_1mA_CNT_PI;
                 CALIB_1V_CNT      = catId.AnalogIpTests[0].CALIB_1V_CNT;
                 CALIB_1V_CNT_PI   = catId.AnalogIpTests[0].CALIB_1V_CNT_PI;
                 CALIB_20mA_CNT    = catId.AnalogIpTests[0].CALIB_20mA_CNT;
                 CALIB_20mA_CNT_PI = catId.AnalogIpTests[0].CALIB_20mA_CNT_PI;
                 CALIB_4mA_CNT     = catId.AnalogIpTests[0].CALIB_4mA_CNT;
                 CALIB_9V_CNT      = catId.AnalogIpTests[0].CALIB_9V_CNT;
                 CALIB_9V_CNT_PI   = catId.AnalogIpTests[0].CALIB_9V_CNT_PI;
             }
         }
     }
     catch (Exception ex)
     {
     }
     if (clsGlobalVariables.selectedDeviceType == clsGlobalVariables.SelectedDeviceType.PR69_96x96 ||
         clsGlobalVariables.selectedDeviceType == clsGlobalVariables.SelectedDeviceType.PR69_48x48 ||
         clsGlobalVariables.selectedDeviceType == clsGlobalVariables.SelectedDeviceType.PR43_48x48)
     {
         IsPR69Product = true;
         IsPIProduct   = false;
     }
     else
     {
         IsPR69Product = false;
         IsPIProduct   = true;
     }
 }
 internal void ParseRelayOrSSRDetails(CatIdList catId)
 {
     if (catId.CalibrationConstantsTests != null)
     {
         if (catId.CalibrationConstantsTests.Count != 0)
         {
             WRITE_CALIB_CONST           = catId.CalibrationConstantsTests[0].WRITE_CALIB_CONST;
             WRITE_CALIB_CONST_WITH_VREF = catId.CalibrationConstantsTests[0].WRITE_CALIB_CONST_WITH_VREF;
         }
     }
 }
Пример #3
0
        public void ParseTC_RTDDetails(CatIdList catId)
        {
            if (catId.TC_RTDTests != null)
            {
                if (catId.TC_RTDTests.Count != 0)
                {
                    CALC_SLOPE_OFFSET  = catId.TC_RTDTests[0].CALC_SLOPE_OFFSET;
                    CALIB_100_OHM      = catId.TC_RTDTests[0].CALIB_100_OHM;
                    CALIB_1_MV_CNT     = catId.TC_RTDTests[0].CALIB_1_MV_CNT;
                    CALIB_313_71_OHM   = catId.TC_RTDTests[0].CALIB_313_71_OHM;
                    CALIB_47_68_MV_CNT = catId.TC_RTDTests[0].CALIB_47_68_MV_CNT;
                    CALIB_50_MV_CNT    = catId.TC_RTDTests[0].CALIB_50_MV_CNT;
                    CALIB_PT100        = catId.TC_RTDTests[0].CALIB_PT100;
                    CALIB_TC           = catId.TC_RTDTests[0].CALIB_TC;
                }

                if (CALIB_50_MV_CNT)
                {
                    CALIB_MV_CNT_PR69_PI = true;
                }
                else
                {
                    CALIB_MV_CNT_PR69_PI = false;
                }

                if (CALIB_PT100)
                {
                    CALIB_PT100_PR69_PI = true;
                }
                else
                {
                    CALIB_PT100_PR69_PI = false;
                }

                if (CALIB_47_68_MV_CNT)
                {
                    CALIB_MV_CNT_PR43 = true;
                }
                else
                {
                    CALIB_MV_CNT_PR43 = false;
                }

                if (CALIB_100_OHM)
                {
                    CALIB_PT100_PR43 = true;
                }
                else
                {
                    CALIB_PT100_PR43 = false;
                }
            }
        }
        internal void ParseRelayOrSSRDetails(CatIdList catId)
        {
            if (catId.CommonCalibTests != null)
            {
                if (catId.CommonCalibTests.Count != 0)
                {
                    READ_DEVICE_ID = catId.CommonCalibTests[0].READ_DEVICE_ID;

                    READ_CALIB_CONST = catId.CommonCalibTests[0].READ_CALIB_CONST;

                    START_DISP_TEST     = catId.CommonCalibTests[0].START_DISP_TEST;
                    START_KEYPAD_TEST   = catId.CommonCalibTests[0].START_KEYPAD_TEST;
                    SWITCH_SENSOR_RELAY = catId.CommonCalibTests[0].SWITCH_SENSOR_RELAY;
                    Vtg24V_OP_TEST      = catId.CommonCalibTests[0].Vtg24V_OP_TEST;
                    START_MODBUS_TEST   = catId.CommonCalibTests[0].START_MODBUS_TEST;
                    CJC_TEST            = catId.CommonCalibTests[0].CJC_TEST;
                }
            }
        }
Пример #5
0
 public void ParseAnalogOPDetails(CatIdList catId)
 {
     try
     {
         if (catId.AnalogOpTests != null)
         {
             if (catId.AnalogOpTests.Count != 0)
             {
                 SET_DFALT_1MA_CNT    = catId.AnalogOpTests[0].SET_DFALT_1MA_CNT;
                 CALIBRATE_CURRENT    = catId.AnalogOpTests[0].CALIBRATE_CURRENT;
                 CALIBRATE_VOLTAGE    = catId.AnalogOpTests[0].CALIBRATE_VOLTAGE;
                 CHK_ANALOG_OP_VAL    = catId.AnalogOpTests[0].CHK_ANALOG_OP_VAL;
                 SET_12MA_ANLOP       = catId.AnalogOpTests[0].SET_12MA_ANLOP;
                 SET_5V_ANLOP         = catId.AnalogOpTests[0].SET_5V_ANLOP;
                 SET_DFALT_10V_CNT    = catId.AnalogOpTests[0].SET_DFALT_10V_CNT;
                 SET_DFALT_1V_CNT     = catId.AnalogOpTests[0].SET_DFALT_1V_CNT;
                 SET_DFALT_20MA_CNT   = catId.AnalogOpTests[0].SET_DFALT_20MA_CNT;
                 SET_DFALT_4MA_CNT    = catId.AnalogOpTests[0].SET_DFALT_4MA_CNT;
                 SET_OBSRVED_10V_CNT  = catId.AnalogOpTests[0].SET_OBSRVED_10V_CNT;
                 SET_OBSRVED_1MA_CNT  = catId.AnalogOpTests[0].SET_OBSRVED_1MA_CNT;
                 SET_OBSRVED_1V_CNT   = catId.AnalogOpTests[0].SET_OBSRVED_1V_CNT;
                 SET_OBSRVED_20MA_CNT = catId.AnalogOpTests[0].SET_OBSRVED_20MA_CNT;
                 SET_OBSRVED_4MA_CNT  = catId.AnalogOpTests[0].SET_OBSRVED_4MA_CNT;
             }
         }
     }
     catch (Exception ex)
     {
     }
     if (clsGlobalVariables.selectedDeviceType == clsGlobalVariables.SelectedDeviceType.PR69_96x96 ||
         clsGlobalVariables.selectedDeviceType == clsGlobalVariables.SelectedDeviceType.PR69_48x48 ||
         clsGlobalVariables.selectedDeviceType == clsGlobalVariables.SelectedDeviceType.PR43_48x48)
     {
         IsPR69Product = true;
         IsPIProduct   = false;
     }
     else
     {
         IsPR69Product = false;
         IsPIProduct   = true;
     }
 }
        public void ParseRelayOrSSRDetails(CatIdList catId)
        {
            if (catId.RelayOrSSRTests != null)
            {
                if (catId.RelayOrSSRTests.Count != 0)
                {
                    OP1 = catId.RelayOrSSRTests[0].OP1;
                    OP2 = catId.RelayOrSSRTests[0].OP2;
                    OP3 = catId.RelayOrSSRTests[0].OP3;

                    //OP1subtest = catId.RelayOrSSRTests[0].OP1subtest;
                    //OP2subtest = catId.RelayOrSSRTests[0].OP2subtest;
                    //OP3subtest = catId.RelayOrSSRTests[0].OP3subtest;

                    SelectedOP1Type = catId.RelayOrSSRTests[0].SelectedOP1Type;
                    SelectedOP2Type = catId.RelayOrSSRTests[0].SelectedOP2Type;
                    SelectedOP3Type = catId.RelayOrSSRTests[0].SelectedOP3Type;

                    SelectedOP1RelayType = catId.RelayOrSSRTests[0].SelectedOP1RelayType;
                    SelectedOP2RelayType = catId.RelayOrSSRTests[0].SelectedOP2RelayType;
                    SelectedOP3RelayType = catId.RelayOrSSRTests[0].SelectedOP3RelayType;
                }
            }
        }
        internal void ParseAccuracyDetails(CatIdList catId, AccuracyParameter Input)
        {
            try
            {
                switch (Input)
                {
                    case AccuracyParameter.mAmp:
                        if (catId.mAmpTests != null)
                        {
                            NumberTestPoints = catId.mAmpTests[0].NumberTestPoints;
                            Min = catId.mAmpTests[0].Min;
                            Max = catId.mAmpTests[0].Max;
                            Tolerance = catId.mAmpTests[0].Tolerance;
                            DelayForNexttest = catId.mAmpTests[0].DelayForNexttest;
                            P1 = catId.mAmpTests[0].P1;
                            P2 = catId.mAmpTests[0].P2;
                            P3 = catId.mAmpTests[0].P3;
                            P4 = catId.mAmpTests[0].P4;
                            P5 = catId.mAmpTests[0].P5;
                            P6 = catId.mAmpTests[0].P6;
                            P7 = catId.mAmpTests[0].P7;
                            P8 = catId.mAmpTests[0].P8;
                            P9 = catId.mAmpTests[0].P9;
                            P10 = catId.mAmpTests[0].P10;
                        }
                        break;

                    case AccuracyParameter.Volt:
                        if (catId.VoltTests != null)
                        {
                            NumberTestPoints = catId.VoltTests[0].NumberTestPoints;
                            Min = catId.VoltTests[0].Min;
                            Max = catId.VoltTests[0].Max;
                            Tolerance = catId.VoltTests[0].Tolerance;
                            DelayForNexttest = catId.VoltTests[0].DelayForNexttest;
                            P1 = catId.VoltTests[0].P1;
                            P2 = catId.VoltTests[0].P2;
                            P3 = catId.VoltTests[0].P3;
                            P4 = catId.VoltTests[0].P4;
                            P5 = catId.VoltTests[0].P5;
                            P6 = catId.VoltTests[0].P6;
                            P7 = catId.VoltTests[0].P7;
                            P8 = catId.VoltTests[0].P8;
                            P9 = catId.VoltTests[0].P9;
                            P10 = catId.VoltTests[0].P10;
                        }
                        break;

                    case AccuracyParameter.PT100Sensor:
                        if (catId.PT100SensorTests != null)
                        {
                            NumberTestPoints = catId.PT100SensorTests[0].NumberTestPoints;
                            Min = catId.PT100SensorTests[0].Min;
                            Max = catId.PT100SensorTests[0].Max;
                            Tolerance = catId.PT100SensorTests[0].Tolerance;
                            DelayForNexttest = catId.PT100SensorTests[0].DelayForNexttest;
                            P1 = catId.PT100SensorTests[0].P1;
                            P2 = catId.PT100SensorTests[0].P2;
                            P3 = catId.PT100SensorTests[0].P3;
                            P4 = catId.PT100SensorTests[0].P4;
                            P5 = catId.PT100SensorTests[0].P5;
                            P6 = catId.PT100SensorTests[0].P6;
                            P7 = catId.PT100SensorTests[0].P7;
                            P8 = catId.PT100SensorTests[0].P8;
                            P9 = catId.PT100SensorTests[0].P9;
                            P10 = catId.PT100SensorTests[0].P10;
                        }
                        break;

                    case AccuracyParameter.RSensor:
                        if (catId.RSensor != null)
                        {
                            NumberTestPoints = catId.RSensor[0].NumberTestPoints;
                            Min = catId.RSensor[0].Min;
                            Max = catId.RSensor[0].Max;
                            Tolerance = catId.RSensor[0].Tolerance;
                            DelayForNexttest = catId.RSensor[0].DelayForNexttest;
                            P1 = catId.RSensor[0].P1;
                            P2 = catId.RSensor[0].P2;
                            P3 = catId.RSensor[0].P3;
                            P4 = catId.RSensor[0].P4;
                            P5 = catId.RSensor[0].P5;
                            P6 = catId.RSensor[0].P6;
                            P7 = catId.RSensor[0].P7;
                            P8 = catId.RSensor[0].P8;
                            P9 = catId.RSensor[0].P9;
                            P10 = catId.RSensor[0].P10;
                        }
                        break;

                    case AccuracyParameter.JSensor:
                        if (catId.JSensor != null)
                        {
                            NumberTestPoints = catId.JSensor[0].NumberTestPoints;
                            Min = catId.JSensor[0].Min;
                            Max = catId.JSensor[0].Max;
                            Tolerance = catId.JSensor[0].Tolerance;
                            DelayForNexttest = catId.JSensor[0].DelayForNexttest;
                            P1 = catId.JSensor[0].P1;
                            P2 = catId.JSensor[0].P2;
                            P3 = catId.JSensor[0].P3;
                            P4 = catId.JSensor[0].P4;
                            P5 = catId.JSensor[0].P5;
                            P6 = catId.JSensor[0].P6;
                            P7 = catId.JSensor[0].P7;
                            P8 = catId.JSensor[0].P8;
                            P9 = catId.JSensor[0].P9;
                            P10 = catId.JSensor[0].P10;
                        }
                        break;

                    default:
                        break;
                }
            }
            catch (Exception )
            {
                
            }
        }