10-16-2019 06:29 AM
Hi,
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?
10-16-2019 07:01 AM
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:
Can I Reset the Iteration Terminal on a While or For Loop?
Hope that helps.
10-16-2019 07:42 AM
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.
10-16-2019 08:15 AM
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.