using DataEntity.Share;
|
using DriverLib.Engine;
|
|
namespace XCore
|
{
|
/// <summary>
|
/// 控制移液枪
|
/// </summary>
|
public class ADPBll
|
{
|
#region 检查移液枪是否有枪头
|
/// <summary>
|
/// 检查移液枪是否有枪头
|
/// </summary>
|
/// <param name="armId">机械臂ID</param>
|
/// <param name="isExist">是否存在</param>
|
/// <param name="channelId">通道信息</param>
|
/// <param name="isSimulator">是否模拟</param>
|
/// <returns></returns>
|
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 检查移液枪是否有枪头
|
/// <summary>
|
/// 检查移液枪是否有枪头
|
/// </summary>
|
/// <param name="armId">机械臂ID</param>
|
/// <param name="isExist">是否存在Tip头在每一个通道上</param>
|
/// <param name="chList">通道数组</param>
|
/// <param name="isSimulator">是否模拟</param>
|
/// <returns></returns>
|
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<DeviceArm> deviceArms = getOrSetDeviceArmdb.GetDeviceArmFromdb(Shared.SoftwareInformation.software_device_number);
|
ret = MethodAction.Instance.ADPCheckTip(armId, out isExist, chList);
|
}
|
else
|
{
|
ret = 0;
|
}
|
|
return ret;
|
}
|
#endregion
|
}
|
}
|