LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sum of time of loop iteration.

Solved!
Go to solution

Hello,

 

I need to estimate a time of while loop execution. The time is various (depend from Triggers counter). I need to estimate the time of every single iteration and add last time with current iteration. For example the first iteration time - 400ms, second 350ms (400+350)(, third 380 (400+350+380)ms. I tried with tick counter and shift register, but I got a sum of tick counter (absolute). I will be thankfull for any suggestions. I need that time to plot the graph with gauged values.

 

Lukasz 

0 Kudos
Message 1 of 2
(2,511 Views)
Solution
Accepted by topic author Mrssss

Hi Lukas,

 

your questions sounds like the perfect example to learn to use shift registers. Is this homework?

check.png

(Using a random wait for testing...)

Best regards,
GerdW


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