在使用缓冲事件计数时为什么得到错误201002或200303?



硬件: Counter/Timers (TIO)>>Devices>>PCI-6602

问题:

在缓冲事件计数任务中使用内部时基作为时钟源时,得到错误201002,如下所示。

如果将时钟改为板载时钟,得到错误200303,如下所示。

我为什么不能使用内部时钟或者板载时钟呢?



解答:

缓冲事件计数任务需要外部时钟源。错误201002之所以发生,是因为不像模拟任务,缓冲计数器任务不能使用内部时钟或者板载时钟分频。

使用外部时钟可以解决错误201002和200303。如果不使用外部时钟,可以使用另外一个计数器生成脉冲序列,作为缓冲事件计数的时钟。该做法在以下文档中验证过:Community Example: Use Counter to Create a Clock for a Buffered Edge Counting Task



相关链接: Community Example: Use Counter to Create a Clock for a Buffered Edge Counting Task
Community Example: Buffered Edge Countring: Edges Counted Per Period
KnowledgeBase: Error 200141 Occurs When Doing Buffered Event Counting
AE KB 3EBAS6MQ: Why Can't I Choose the Internal Clock on the Counter Example Program "Meas Angular Position-Buffered-Cont-Ext Clk.vi"?

附件:





报告日期: 04/30/2010
最近更新: 11/19/2012
文档编号: 58T87BGI