10-06-2009 03:10 AM
hello,
i have a test writen in labview 8.6, and i need to know the run time of the test or parts of the test.
thank you for your help
10-06-2009 03:17 AM
Hi jackedi,
I do not know how to do this the real professional way, but a general idea would be to somehow get the time at the desired starting point of the test and at the desired end point and then compare those two times.
I would suggest you use processor ticks instead of using a timestamp, because they are more accurate.
Just take a look around the timing functions of LV, there should be something that fits your needs.
Regards,
10-06-2009 03:19 AM
hi,
if you want to determine the time of the vi, you need to use the tick count vi
10-06-2009 03:25 AM
I do not know if this tool is included in Labview basic, but you can find in all other versions. Go to toolbar tools->profile->performance and memory
10-06-2009 03:54 AM
As Pattos and Somil suggested, use the Tick Count node.
10-06-2009 04:11 AM
It is a small "but" to the suggestion from Adnan Z. If the code you want to test execute fast. You must put it in a for loop a execute it say 1000 or 10000 times. This because the timer tick resolution is 1 msec at the best. Windows is not a real time system, so you may also have some jitter in the Tick Count output
10-08-2009 07:14 AM
yes i know
i have a seq. that is in two parts.
the first part is 200 ms long the second is 20ms.
my problem is that in the first part i need to do some program sets and wait untill the 200ms will end to start the second part.
in addition i have an I/O line and if i get a pulse in this line i need to know exacly when it hapend.
i dont care if i miss 1-2ms between the two seq. but i cant miss more then that.