public int[] ReadArrayFast16S(int Address) { try { if (!m_Adapter.Connected) { throw new InvalidOperationException("No connection to device"); } return(m_Adapter.ReadArrayFast16S((ushort)NodeID, (ushort)Address).Select(Arg => (int)Arg).ToArray()); } catch (Exception e) { Console.WriteLine(e.Message); throw; } }
internal IList <short> ReadArrayFast16S(ushort Node, ushort Address) { IList <short> res = new List <short>(); if (m_IsAdapterEmulation) { return(res); } try { res = m_Adapter.ReadArrayFast16S(Node, Address); } catch (Exception ex) { throw new Exception(string.Format(Resources.Error_IOAdapter_Operation_Node_Address_Message, Node, Address, ex.Message, @"@ReadArrayFast16S")); } return(res); }