示例#1
0
        public void Load(string file)
        {
            MemoryStream    ms  = Streams.FileToMemoryStream(file);
            BinaryFormatter bf  = new BinaryFormatter();
            object          obj = bf.Deserialize(ms);

            if (obj != null)
            {
                AnchovyParams temp = (AnchovyParams)obj;
                //James added for stingray
                this.PSd2_Ppower       = temp.PSd2_Ppower;
                this.AdcFilterCoef     = temp.AdcFilterCoef;
                this.AdcThreshold      = temp.AdcThreshold;
                this.TargetADThresJump = temp.TargetADThresJump;
                this.TargetADThresStab = temp.TargetADThresStab;
                this.TargetADDepthInit = temp.TargetADDepthInit;
                this.TargetADdepthStep = temp.TargetADdepthStep;
                this.Alpha_Low         = temp.Alpha_Low;
                this.AmbG        = temp.AmbG;
                this.AmbOfs      = temp.AmbOfs;
                this.Iout_Gain   = temp.Iout_Gain;
                this.Iout_Offset = temp.Iout_Offset;

                //end

                this.IRAmbCount = temp.IRAmbCount;
                this.TCAmbCount = temp.TCAmbCount;
                this.VoutGain   = temp.VoutGain;
                this.VoutOffset = temp.VoutOffset;
                this.PSdOfs2    = temp.PSdOfs2;
                this.Alpha      = temp.Alpha;
                this.CaliTemp   = temp.CaliTemp;
                this.OutputMode = temp.OutputMode;
                this.BPTable    = temp.BPTable;
                this.PSd2Table  = temp.PSd2Table;


                this.AdjGain      = temp.AdjGain;
                this.AdjOffset    = temp.AdjOffset;
                this.AmbTempValue = temp.AmbTempValue;
                this.TP1Temp      = temp.TP1Temp;
                this.TP1Count     = temp.TP1Count;
                this.TP2Temp      = temp.TP2Temp;
                this.TP2Count     = temp.TP2Count;
                this.TP3Temp      = temp.TP3Temp;
                this.TP3Count     = temp.TP3Count;
                this.mVLowCount   = temp.mVLowCount;
                this.mVLowOut     = temp.mVLowOut;
                this.mVHighCount  = temp.mVHighCount;
                this.mVHighOut    = temp.mVHighOut;
                this.TCLowCount   = temp.TCLowCount;
                this.TCLowOut     = temp.TCLowOut;
                this.TCHighCount  = temp.TCHighCount;
                this.TCHighOut    = temp.TCHighOut;

                this.BackupDate      = temp.BackupDate;
                this.FirmwareVersion = temp.FirmwareVersion;
                this.ModelName       = temp.ModelName;
                this.ModelNum        = temp.ModelNum;
                this.Remark          = temp.Remark;
                this.Emissivity      = temp.Emissivity;
                this.SerialNum       = temp.SerialNum;
                this.TempUnit        = temp.TempUnit;
                this.UpperLimit      = temp.UpperLimit;
                this.LowLimit        = temp.LowLimit;
                this.IRAmbTemp       = temp.IRAmbTemp;
                this.TCAmbTemp       = temp.TCAmbTemp;
            }
        }