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