/// <summary> /// 构造函数 /// </summary> /// <param name="boardNum"></param> public JYPXI69527(int boardNum) { aitask = new JYPXI69527AITask(boardNum); EventQueue = new Queue <JYCommon.WaitEvent>(8); _waitUntilDoneEvent = new JYCommon.WaitEvent(() => _taskDone); NumOfChannels = 2; }
public JYPXI69527AITaskImpl(int boardId) { AITask = new JYPXI69527AITask(boardId); AITask.Mode = JYPXI69527.AIMode.Continuous; AITask.Trigger.Type = AITriggerType.Immediate; //AITask.Trigger.Type = JYPXI69527.AITriggerType.Analog; //AITask.Trigger.Analog.Source = JYPXI69527.AIAnalogTriggerSource.CH0; //AITask.Trigger.Analog.Threshold = 0.1; }
/// <summary> /// 配置AI /// </summary> private void AIConfig() { //添加任务 aitask = new JYPXI69527AITask(0); //AI配置 aitask.AddChannel(0, -10, 10, Coupling.DC, AITerminal.Differential); aitask.AddChannel(1, -10, 10, Coupling.DC, AITerminal.Differential); aitask.Mode = AIMode.Finite; aitask.SampleRateRadio = SampleRateRadio.AIO_1to1; aitask.Trigger.Type = AITriggerType.SoftWare; aitask.SampleRate = (double)numericUpDownSamplingRate.Value; }
public JYPXI69527(int boardNum) { aiTask = new JYPXI69527AITask(boardNum); DSAInfo info = new DSAInfo() { MaxChannels = 2, MaxSampleRate = 432000, Ranges = new string[] { "0.316", "1", "3.16", "10", "40" }, Couplings = Enum.GetNames(typeof(Coupling)), Terminals = Enum.GetNames(typeof(AITerminal)), }; DSAInformation = info; TriggerSetting = new Trigger(); }