Martin;
To stops the geneartion of the pulse train, you can call the Control.vi and sets the Disarm action on it, somewhere on your code, when the condition you want to stop the generation happens.
When that VI is executed, the counter will stop the generation.
Hope this helps.
Filipe