09-29-2009 06:45 AM
10-01-2009 12:02 PM - edited 10-01-2009 12:06 PM
Hello Linde,
thank you for posting at the National Instruments Forum. I found the following in our internal databases related to your problem:
"Just like the error says, you are arming the counter to measure the pulse width (e.g. high time) while the signal is currently high. So, it generates an error, otherwise you would get bad data and not know it. To illustrate, open the Measure Buffered Pulse (DAQ-STC) example. Set source to 20MHz clock and buffer size to 100. Run this a couple of times and you'll see that occasionally, the first sample returned in the array is different than the rest. That's because the counter was initially armed during the high time. It starts counting, but obviously can't measure the entire pulse width because some of the pulse has already occurred. There are a couple of work arounds that could be used:
There is also another post related to the same issue: http://forums.ni.com/ni/board/message?board.id=40&message.id=889&requireLogin=False
By the way: you did not mention which hardware you are using.
Best regards