LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

profile performance and memory for a simple program

Solved!
Go to solution

I am trying to find the program execution time using the tools-> profile -> performance and memeory, for the simple add function.

in my case, no matter how many times the loop runs (1 or 10000), the time given is 15625. Is there a reason for this particular number?

 

Thanks.

0 Kudos
Message 1 of 5
(2,832 Views)

I have no idea what timing details you're looking at. If you're referring to the Profile Performance and Memory windows, that gives a value of zero across the board.

 

What exactly are you trying to measure? Trying to measure the time that it takes to add two numbers seems pointless to me.

0 Kudos
Message 2 of 5
(2,787 Views)

Hi,

I am referring to the Profile Performance and Memory windows. I need to find out the execution time of a few sub vi's in another program, so I wanted to use a simple program to find out the time, in microseconds, taken to run the program. When I run the code, I see the run time as 15625 (see screenshot) or a multiple of 15625. I am trying to understand what this number is.

 

0 Kudos
Message 3 of 5
(2,774 Views)

you can try to add this to your vi

 

0 Kudos
Message 4 of 5
(2,761 Views)
Solution
Accepted by SohamSaha

Hi Soham,

 

15.625ms is the usual resolution when measuring times on Windows before WinVista (XP and older). Maybe this is what you're seeing?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 5
(2,753 Views)