LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Elapsed Time" Express VI doesn't work as expected

Hi ...

I am currently trying to get continously data from a device which is connected via GPIB. I have a while loop, which does the reading and I put the Elapsed Time Express VI into it, so the while loop stops after 30 seconds (or at least I thought so).

What happens:
* I activate the read process for the first time, it takes exactely 30 seconds as expected.
* 10 Seconds later, I activate the process for the second time, it takes 20 seconds (?).
* 5 Seconds later, I activate the process for the third time, it takes 25 seconds (?).

I attached an image of my VI, maybe you could tell me what I'm doing wrong?

Message 1 of 3
(3,246 Views)
Hi Thomas!

You have to reset the Elapsed Time for each 0 iteration of the while loop, see attached file.
The time differance is depending on the operation after the while loop. Elapsed Time is reseted and restarted then Time has Elapsed is true, and the time elapsed after the while loop is included.

Regards

/Thomas
Message 2 of 3
(3,209 Views)
Hi Thomas 😉

Ah, thank you - now I understand. I thought AutoReset would start the VI at 0 for me, but it's just there to reset it to 0 when the VI has finished. I guess I didn't think too much about the Reset terminal.

Thanks again, now it works 🙂
0 Kudos
Message 3 of 3
(3,198 Views)