05-15-2025 02:22 AM
Hi everyone,
I use the attached template for my tests and depending of the result of the test i give the chance to the user to repeat the test if failed.
I set 5 min to select an option to repeat it and if the user dont select anything, it doesnt repeat the test.
The issue is that if the user wants to repeat it and the test failed again the Elapsed Time Express VI save the elapsed time from the first start of the test, so if the test last more than 5 min and the test VI arrives to the repetition decission, it pass through it and doesnt repeit it.
So i need to know if i can use this VI or not (or if im doing something wrong)
Thank you in advance.
Solved! Go to Solution.
05-15-2025 02:35 AM - edited 05-15-2025 02:42 AM
Hi xespizua,
@xespizua wrote:
So i need to know if i can use this VI or not (or if im doing something wrong)
When the VI doesn't work like it should then you cannot used it…
On that image of code:
Suggestion:
05-15-2025 02:44 AM
When the test starts, wire a true value to the "Reset" input of the elepsed time vi for just the first iteration. Best to use a shift register for this.
05-15-2025 04:03 AM - edited 05-15-2025 04:14 AM
Hi GerdW, thanks for answering,
Regards,
xespizua.
05-15-2025 04:29 AM
EDIT: the Elapsed Time Express VI is linked to the Format Into String function by the Elapsed Time(s) output, not the Present (s) output.
05-15-2025 05:21 AM
I solved it with the High Resolution Relative Seconds.vi, easiest than i thought.
Thanks GerdW for the idea.