/// <summary> /// Default Constructor /// </summary> // Revison History: // MM/DD/YY who Version Issue# Description // -------- --- ------- ------ --------------------------------------- // 06/01/06 RCG 7.40.00 N/A Created // 04/12/16 AF 4.50.244 674921 Added optional parameter for M2Gateway public AMIConfiguration(bool bIsM2Gateway = false) { #if (!WindowsCE) m_SerialPort = new SerialCommDesktop(); #else m_SerialPort = new SerialCommCE(); #endif m_PSEM = new CPSEM(m_SerialPort); if (bIsM2Gateway) { CreateInstanceM2Gateway(m_PSEM); } else { CreateInstance(m_PSEM); } }
/// <summary> /// Constructor /// </summary> /// <param name="strName"> /// The identifier for the current test run. This is used to identify which probe the test is /// being run on and is for informational purposes. /// </param> /// <param name="strPort">The port to use for the test.</param> /// <param name="uiBaudRate">The baud rate to use for the test.</param> /// <param name="probeType">The optical probe type for the test.</param> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ ------------------------------------------- // 08/28/09 RCG 2.30.00 Created public ValidationWorker(string strName, string strPort, uint uiBaudRate, OpticalProbeTypes probeType) { m_bCancelled = false; m_strName = strName; m_strResultDir = Settings.Default.ResultsDir + "\\"; m_strPort = strPort; m_uiBaudRate = uiBaudRate; m_ProbeType = probeType; m_Comm = new SerialCommDesktop(); m_Comm.OpticalProbe = m_ProbeType; m_Comm.BaudRate = m_uiBaudRate; m_strProgramFile = Settings.Default.ProgramFile; m_strValidationTestsFile = CRegistryHelper.GetFilePath(REG_REPLICA) + TEST_FILE; if (Directory.Exists(m_strResultDir) == false) { Directory.CreateDirectory(m_strResultDir); } }