using DataEntity.Share; using DriverLib.Engine; namespace XCore { /// /// 控制移液枪 /// public class ADPBll { #region 检查移液枪是否有枪头 /// /// 检查移液枪是否有枪头 /// /// 机械臂ID /// 是否存在 /// 通道信息 /// 是否模拟 /// public static int ExecuteADPCheckTip(out bool isExist, bool isSimulator = false) { int ret = 0; // 0:正常; 0以外:异常 isExist = false; if (!isSimulator) { int[] channelId = null; if (Shared.ChannelsId.Length > 1) { channelId = Shared.ChannelsId; } ret = MethodAction.Instance.ADPCheckTip(Shared.ChanelArmId, out isExist, channelId); } else { ret = 0; } return ret; } #endregion #region 检查移液枪是否有枪头 /// /// 检查移液枪是否有枪头 /// /// 机械臂ID /// 是否存在Tip头在每一个通道上 /// 通道数组 /// 是否模拟 /// public static int ExecuteADPCheckMultiTip(int armId,int[] chList,out bool[] isExist, bool isSimulator = false) { int ret = 0; // 0:正常; 0以外:异常 isExist =new bool[chList.Length]; if (!isSimulator) { //GetOrSetDeviceArmdb getOrSetDeviceArmdb = new GetOrSetDeviceArmdb(); //ObservableCollection deviceArms = getOrSetDeviceArmdb.GetDeviceArmFromdb(Shared.SoftwareInformation.software_device_number); ret = MethodAction.Instance.ADPCheckTip(armId, out isExist, chList); } else { ret = 0; } return ret; } #endregion } }