public Linx() { // Canberra.DSA3K.DataTypes.Communications.DeviceFactory.CreateInstance(Canberra.DSA3K.DataTypes.Communications.DeviceFactory.DeviceInterface); object o = DeviceFactory.CreateInstance(DeviceFactory.DeviceInterface.IDevice); device = (IDevice)o; string local = "10.0.3.122"; string linx = "192.168.114.001"; try { device.Open(local, linx); } catch (Canberra.DSA3K.DataTypes.DeviceException ex) { string exce = ex.Description; } bool opened = device.IsOpen; object real = device.GetProperty("Real Time"); string retext = real.ToString(); }
private void BuildDeviceList() { Devices = new List <Device>(); DevicesByISEID = new Dictionary <string, Device>(); foreach (var d in LegacyXMLAPIClient.DeviceList.Device) { Device gd = DeviceFactory.CreateInstance(d, LegacyXMLAPIClient, this); Devices.Add(gd); DevicesByISEID.Add(gd.ISEID, gd); } }