Anatd,
Using LabVIEW 7.0, I can think of no solution to accomplish what your
application requires. In 7.1 and later, you could use change detection
on your M Series to signal changes to software. If no change is
detected for an extended period, you could terminate the pulse
generation. It would also be possible to accomplish something similar
with an additional counter, but you are already using both of yours.
If instead you use the Gen Dig Pulse-Retriggerable.vi example, this
only uses a single counter. You could then use your other counter to
count edges (on the trigger signal). If the count does not increase for
100 seconds, you could have your application terminate.
Finally, you could just have a stop button that the user can press to
terminate the application. It is important to note that LabVIEW
releases the CPU whenever the "Wait until next millisecond multiple" VI
is called. You should not worry about CPU usage in the while loop in
your application.
Hope this helps,
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments