protected void WriteNumber(object data, IEEEASCIIType type = IEEEASCIIType.ASCIIType_Any, bool flushAndEND = true)
 {
     if (DriverIsReady)
     {
         try {
             _driver.WriteNumber(data, type, flushAndEND);
         }
         catch (Exception ex) {
             Close();
             throw ex;
         }
     }
     else
     {
         throw new System.InvalidOperationException("Cannot execute WriteNumber(...). Driver not initialized or is closed.");
     }
 }