The following VI generates a random number and the time starts when the value generated is between two specified values. How could I modify this Vi to have the elapsed time reset to zero every time the random number is between those two values instead of continuing counting?
If I understood you correctly, all you need to do is wire a TRUE to the "Reset" input, and then use a shift register to pass out the "Present (s)" output to use as the value to pass into the "Set Start Time (s)" input. See attached.