/// <summary> /// 多通道软触发 /// </summary> /// <param name="softwareTriggerArray"></param> /// <param name="length"></param> /// <returns></returns> public int MultiSoftwareTrigger(MaxCurrent[] softwareTriggerArray, int length) { OPTControllerAPI.TriggerWidthItem[] arr = new OPTControllerAPI.TriggerWidthItem[length]; for (int i = 0; i < softwareTriggerArray.Length; i++) { arr[i].channel = softwareTriggerArray[i].channel; arr[i].triggerWidth = softwareTriggerArray[i].SoftwareTriggerTime; } return(opt.SetMultiTriggerWidth(arr, length)); }
/// <summary> /// 设置多个通道触发脉宽 /// </summary> /// <param name="TriggerWidthArray"></param> /// <param name="len"></param> /// <returns></returns> public int SetMultiTriggerWidth(TriggerWidth[] TriggerWidthArray, int len) { OPTControllerAPI.TriggerWidthItem[] arr = new OPTControllerAPI.TriggerWidthItem[len]; for (int i = 0; i < TriggerWidthArray.Length; i++) { arr[i].channel = TriggerWidthArray[i].channel; arr[i].triggerWidth = TriggerWidthArray[i].triggerWidth; } return(opt.SetMultiTriggerWidth(arr, len)); }