07-30-2007 12:05 PM
07-30-2007 12:36 PM
07-30-2007 12:38 PM
The loop iteration counter is an I32, which means it is a signed 32 bit integer, which means it can go up to 2^31, which means that at ten iterations a second you can run it for roughly 6.8 years before you get to the limit.
As for better ways of measuring, I didn't understand exactly what it is you are doing, but I suggest you use two shift registers - one for counting the number of pulses (increment it by one each time there is a pulse and don't increment when there is none) and one for monitoring the time. You can use the Tick Count to get the value of the OS ms timer and pass that through. You can then substract the old value (passed through the shift register) from the current value to get the number of ms which passed. You should find some examples about using SRs in the example finder (Help>>Find Examples)
To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).
07-30-2007 01:57 PM
07-30-2007 02:03 PM
07-31-2007 02:29 AM
By the way,
@Radiance_Jon wrote:
do you get some overflow value at the limit.
I tried it once and the answer is no, the counter just stops.
07-31-2007 07:05 AM