public override bool Initialize(out string outMessage, out WFGen33500BInfo info, IWafeForm p = null) { outMessage = string.Empty; info = new WFGen33500BInfo(); m_initcount++; if (m_initcount >= 1) { m_init = true; return(true); } else { m_init = false; return(false); } }
public virtual bool Initialize(out string outMessage, out WFGen33500BInfo info, IWafeForm p = null) { lock (this) { outMessage = string.Empty; info = new WFGen33500BInfo(); try { // Create driver instance driver = new Ag3352x(); // Edit resource and options as needed. Resource is ignored if option Simulate=true string initOptions = "QueryInstrStatus=true, Simulate=false, DriverSetup= Model=, Trace=false"; bool idquery = true; bool reset = true; // Initialize the driver. See driver help topic "Initializing the IVI-COM Driver" for additional information driver.Initialize(m_resourceDesc, idquery, reset, initOptions); info.Identifier = driver.Identity.Identifier; info.Revision = driver.Identity.Revision; info.Vendor = driver.Identity.Vendor; info.Description = driver.Identity.Description; info.Model = driver.Identity.InstrumentModel; info.FirmwareRev = driver.Identity.InstrumentFirmwareRevision; info.Serial = driver.System.SerialNumber; info.Simulate = driver.DriverOperation.Simulate; m_init = true; return(true); } catch (Exception err) { outMessage = err.Message; return(false); } } }