主要功能为设定/取得连线到WMX3Engine的设备或者是软体所设定的名称
使用方法
设定//需接续在CreateDevice之后wmxApi.SetDeviceName(_DeviceName);
取得新增 wmx_DeviceProperty 类别
public class wmx_DeviceProperty{ public uint Id { set; get; } public string Name { set; get; } public wmx_DeviceProperty(uint Id, string Name) { this.Id = Id; this.Name = Name; }}
之后再把需要的资料都放进List中
List<wmx_DeviceProperty> Temp = new List<wmx_DeviceProperty>();DevicesInfo devicesInfo = new DevicesInfo();wmxApi.GetAllDevices(ref devicesInfo);uint _Count = devicesInfo.Count;for(uint index = 0;index < _Count; index++){ Temp.Add(new wmx_DeviceProperty(devicesInfo.Devices[index].Id, devicesInfo.Devices[index].Name)); }
DevicesInfo中也包含着CreateDevice时设定的DeviceType,Time依照需求加入wmx_DeviceProperty中即可
结果
也可以利用WMX3ConsoleApp中选择Help->Devices