private static int TestDeviceLayer(string[] arg) { BaseWtDevice parameter = new HBM.WT.API.WTX.WtxJet(_sConnection); if (true) { parameter = new HBM.WT.API.WTX.WtxJet(_sConnection); } else { //parameter = new HBM.WT.API.WTX.WTXJet(s_Connection); } /* * Console.Write("Read Measure... "); * int value = parameter.MeasureValue; * Console.WriteLine(value); * //int statusValue = parameter.MeasureValueType; * * Console.Write("Write DPT... "); * parameter.DecimalPonit = 4; * Console.WriteLine("OK"); * * Console.WriteLine("Read Parameter success"); */ return(0); }
private static int ShowProperties(string[] args) { BaseWtDevice parameter = new HBM.WT.API.WTX.WtxJet(_jetConnection); Type type = parameter.GetType(); PropertyInfo[] properties = type.GetProperties(); foreach (PropertyInfo prop in properties) { Console.WriteLine(prop.ToString()); } return(0); }
private static int ShowProperties(string[] args) { BaseWtDevice parameter = new HBM.WT.API.WTX.WtxJet(_sConnection); //HBM.WT.API.COMMON.BaseWTDevice parameter = new Hbm.Wt.WTXInterface.WTX120_Jet.WTX120_Jet(s_Connection, 100); // Before : //Hbm.Wt.WTXInterface.DeviceAbstract parameter = new Hbm.Wt.WTXInterface.WTX120_Jet.WTX120_Jet(s_Connection,100); Type type = parameter.GetType(); PropertyInfo[] properties = type.GetProperties(); foreach (PropertyInfo prop in properties) { Console.WriteLine(prop.ToString()); } return(0); }