public static void SimpleTest(string batchProject, string batchNumber) { #region test parameters var globalParams = new [] { "ID:rack.furnace", "ID:slot.furnace", "ID:DUTposition.furnace", "Time:load.furnace", "Time:unload.furnace", "TimeISO8601:load.furnace", "TimeISO8601:unload.furnace", }; var measureParams = new [] { "X_PA2", "X_PA1", "X_PreSOA", "TERM", }; var fcVol = new double[3, 4] { { 1, 2, 3, 4 }, { 5, 6, 7, 8 }, { 9, 10, 11, 12 }, }; var checkResult = new [] { true, true, true }; #endregion InitalizeCore(); var sfinxData = new SfinxData("99998888", 1, 1, @"D:\SM.net\F5500_Raw_Data", "62", batchProject, batchNumber, globalParams, measureParams); var dt = DateTime.Now; sfinxData.GlobalParam["Time:load.furnace"] = dt.ToString(CultureInfo.InvariantCulture); sfinxData.GlobalParam["TimeISO8601:load.furnace"] = dt.ToString("yyyy-MM-ddTHH:mm:sszzz"); sfinxData.Load(fcVol, 0, dt, checkResult[0]); dt = DateTime.Now; sfinxData.Load(fcVol, 0, dt, checkResult[0]); dt = DateTime.Now; sfinxData.Load(fcVol, 0, dt, checkResult[0]); dt = DateTime.Now; sfinxData.GlobalParam["Time:unload.furnace"] = dt.ToString(); sfinxData.GlobalParam["TimeISO8601:unload.furnace"] = dt.ToString("yyyy-MM-ddTHH:mm:sszzz"); sfinxData.Save(); }
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"); }
private void SfinxDataCreate(int seat, string sn) { sfinxData[seat - 1] = new SfinxData(sn, _floor, _number, ConfigReader.GetItem("SfinxP2FilePath"), ConfigReader.GetItem("StationNumber"), "0325", SfinxData.BatchNumber(), GlobalParameterKeys, (ParaNameList1T15).Split(',')) { GlobalParam = { ["ID:rack.furnace"] = "IQMGenIOven", ["ID:slot.furnace"] = _name, ["ID:DUTposition.furnace"] = seat.ToString() } }; }