2014-10-09 update 1

This commit is contained in:
parallelbgls@outlook.com
2014-10-09 09:08:42 +08:00
parent 2d2f117a44
commit c31a38d99a
3 changed files with 8 additions and 4 deletions

View File

@@ -47,8 +47,7 @@ namespace NA200H.UI.WPF
Thread.Sleep(100);
byte[] getNum = utility.GetDatas(0x02, (byte)ModbusProtocalReadDataFunctionCode.ReadHoldRegister, "10000", 4);
object[] getNumObjects =
ValueHelper.Instance.ByteArrayToObjectArray(getNum,
new List<KeyValuePair<Type, int>>() { { new KeyValuePair<Type, int>(typeof(ushort), 4) } });
ValueHelper.Instance.ByteArrayToObjectArray(getNum, new KeyValuePair<Type, int>(typeof(ushort), 4));
ushort[] getNumUshorts = ValueHelper.Instance.ObjectArrayToDestinationArray<ushort>(getNumObjects);
SetValue(getNumUshorts);
}