FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

I have a clock VI that I attached to several other VIs to keep track of running times but for some reason the clock stops at 24 minutes. Why?

I got this VI form a member of the forum. He used it for the same reason so I figured that it worked. I can't seem to fine the reason that it stops at 24 minutes. Could it been something on my computer stopping it. But I have run this VI on several PCs and got the same results.
0 Kudos
Message 1 of 4
(3,401 Views)
I am not sure what the VI is supposed to be doing. It seems like it will keep track of time it takes to execute x (=3600xNumeric+1) numbers of iterations. How long it takes depends on the system. If the VI runs slower on a particular system, it will take longer to execute the same number of loop iterations than on another station. For example, on my machine it took 6 min to execute the VI with Numeric=1. Another factor is the wait time set in the loop to =100. I don't see anywhere this taken into the consideration.
I am sending you another VI that counts the time from the start of execution until the Stop button is pressed. Of course, you can replace the Stop button with a condition that suites your needs.
Hope this helps.
Zvezdana S.
0 Kudos
Message 2 of 4
(3,401 Views)
The 3600 came from the VI the clock was connected to. I was sampling at 1 sec. intervals in a loop and I allowed the user to set the number of hours to run the test by converting the hours to seconds and comparing it to the iteration in the loop. As for your VI I can't seem to get it to open the file down loads as Timer.llb.eds I don't seem to have an application that will open this. Could you e-mail me the VI version (Timer.VI)at my address jmorris@sccoast.net Thanks Or a picture of the layout I can recreate it myself as a learning exercise.
Thanks again

John Morris
Glendinning marine Products, Inc.
0 Kudos
Message 3 of 4
(3,401 Views)
John,
Here are the files zipped separately.
Zvezdana S.
0 Kudos
Message 4 of 4
(3,401 Views)