LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i measure my test run time?

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

0 Kudos
Message 1 of 7
(5,576 Views)

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,

Pattos

LabVIEW Gretchin
0 Kudos
Message 2 of 7
(5,571 Views)

hi,

 

if you want to determine the time of the vi, you need to use the tick count vi

Somil Gautam
Think Weird
0 Kudos
Message 3 of 7
(5,568 Views)

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



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 4 of 7
(5,562 Views)

As Pattos and Somil suggested, use the Tick Count node.

 

time.png

Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 5 of 7
(5,551 Views)

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 timesThis 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



Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 6 of 7
(5,541 Views)

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.

0 Kudos
Message 7 of 7
(5,497 Views)