07-19-2006 11:28 AM
07-24-2006 06:53 AM
07-27-2006 08:50 AM
07-27-2006 09:37 AM
I don't have LV on my network PC so I can't look at the code. However, I wanted to ask a different question: are you sure that pause-triggered counting is what you want? There's some software polling involved in your approach that is less reliable than performing the measurement with the hardware.
A different technique would be to measure buffered pulse widths. In this mode, the hardware will count during a signal's high time and when the signal goes low, the count value will be buffered and then reset to 0. On the next transition to high, the count starts over again from 0, buffering the next high time when the signal transitions back to low again. Using this technique, the storage and reset are done at a low level by the hardware and/or driver.
-Kevin P.
07-27-2006 10:03 AM
07-27-2006 10:51 AM - edited 07-27-2006 10:51 AM
Fred,
Assuming this is all for the same app, I'll reply in the other thread where there's more info already present. Based on the description in that thread, it sounds like you should measure periods, not semi-periods or pulse widths.
-Kevin P.
Message Edited by Kevin Price on 07-27-2006 11:53 AM
07-27-2006 11:13 AM