Esempio n. 1
0
 public virtual void Close()
 {
     if (driver != null & driver.Initialized == true)
     {
         try
         {
             driver.Close();
         }
         catch (Exception err)
         {
         }
         driver = null;
     }
 }
Esempio n. 2
0
        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);
                }
            }
        }