Example #1
0
        public void InitParam(Dictionary <string, string> param)
        {
            _floor  = int.Parse(param["Floor"]);
            _number = int.Parse(param["Locate"]);
            _name   = param["Name"];
            //SeatsCount = int.Parse(param["SEATS_COUNT"]);
            SeatsCount = int.Parse(ConfigReader.GetItem("SeatsCount"));

            _IsMesEnabled      = bool.Parse(ConfigReader.GetItem("MesCheck"));
            _ExpectedMesStep   = ConfigReader.GetItem("MesStep");
            _IsAutoHoldEnabled = bool.Parse(ConfigReader.GetItem("MesAutoHold"));

            #region keithley initialize
            if (kethley == null)
            {
                kethley     = new Keithley2200();
                kethleytype = ConfigReader.GetItem("KeithleylayNew");
                string kpath = ConfigReader.GetItem("Keithleylay");
                try
                {
#if !DEBUG
                    kethley.mbSession = new SafeSession((MessageBasedSession)ResourceManager.GetLocalManager().Open(kpath));
#else
                    kethley.mbSession = new SafeSession((MessageBasedSession)ResourceManager.GetLocalManager().Open(kpath));
#endif
                }
                catch (Exception e)
                {
                    Log.LogWarn("Keithley connection Failed\r\n" + e.ToString());
                }
            }
            #endregion
            #region Sfinx initialize
            sfinxData = new SfinxData[SeatsCount];
            try
            {
                SwedenDb.InitalizeCore();
            }
            catch (Exception e)
            {
                Log.LogWarn("SwedenDb.InitalizeCore Failed\r\n" + e.ToString());
            }
            #endregion

            Log.LogInfo("load param success");
        }
Example #2
0
        public void Save(ExecutionStatus status = ExecutionStatus.Passed)
        {
            var pc = new ParameterCollection();

            foreach (var t in mGlobalParamName)
            {
                pc.Add(t.ToLaserParameter(GlobalParam[t]));
            }

            foreach (var t in mMeasureParamName)
            {
                pc.Add(SfinxParamName(t).ToLaserParameter(MeasureParam[t]));
            }

            pc.Add("Time.Furnace".ToLaserParameter(MeasuerTime));

            SwedenDb.SaveP2File(mP2FilePath, mWaferId, mChipId, pc);
            SwedenDb.SaveTicket(mP2FilePath, mStationNo, mBatchProject, mBatchNumber, mWaferId, mChipId, mDesc, MeasuerTime[0], mRunNo, status);
        }