From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
|
带有NI-TIO的计数/定时板卡(如NI 660x 板卡)并不直接支持停止触发(或参考触发)但是,通过使用两个边沿分开任务使在开始和结束触发(不同的端线)间进行数字边沿的计数成为可能。进行下面的步骤可以实现这样的功能。范例程序(6602CountEdgesStartStop.vi)附在下面。
一些两边沿分开任务的范例放在NI范例查找器(帮助>>查找范例)下硬件输入输出»DAQmx»计数器测量»两个信号边沿分开。注意这些范例对在开始和停止脉冲间的时间进行计数(而不是ticks),因此它们必须对边沿计数应用进行更改。
在开始和停止脉冲间进行数字边沿计数的例子,请看附件中的6602CountEdgesStartStop.vi
|