public virtual void Close()
 {
     try
     {
         instrument.FlushRead();
         instrument.IO.Clear();
         instrument.IO.Close();
     }
     catch (Exception err)
     {
     }
 }
 protected void FlushRead()
 {
     if (DriverIsReady)
     {
         try {
             _driver.FlushRead();
         }
         catch (Exception ex) {
             Close();
             throw ex;
         }
     }
     else
     {
         throw new System.InvalidOperationException("Cannot execute FlushRead(). Driver not initialized or is closed.");
     }
 }
Exemple #3
0
 public void Close()
 {
     instrument.FlushRead();
     instrument.IO.Clear();
     instrument.IO.Close();
 }