I want my counter to reset when I click the button and continue counting from the initial value (0) right away. Do you have any idea of how this could be done without stopping the task?
Hi, can you explain further about what counter are you planning to use?
If what you meant was the Iteration [ i ] Terminal inside a While Loop, then no you can't reset it. You can instead make your own counter. Refer to:
Hope that helps.
Thank you for your reply, Gabriel! I meant a detector that works as a counter 🙂 It counts in "counts per second" and sends it to my VI.
The example from that link should still apply for your application then.
Maybe you can make something like this.
As how to "read the detector", it should depends on your device.
But if what you mean is how to get data and reset the counter on a "detector with internal counter", then it's an entirely different story.