Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure time in seconds everytime you run a VI

Solved!
Go to solution

Dear Folks,

 

I am trying to measure speed of a wheel using a magnetic sensor and measure some other parameters in the vehicle. What I also need to document in my project is the amount of time elapsed (in seconds) everytime you run the program. Is there a way where you can measure the time elapsed in seconds in labview?

 

Any sort of suggestions or examples would be helpful.

Given below is an example of how I wanted my final output file to look.

 

Time(sec)    | Speed(mph) | Accleration  |

       

        0                    23                 5

        1                    24                 6

        2                    25                 7

 

Thank you in advance!

--Rahul

0 Kudos
Message 1 of 3
(5,886 Views)

Hello,

 

Are you just trying to get the time that has elapsed on the computer itself? If so, there is a Elapsed Time Express VI here: https://www.ni.com/docs/en-US/bundle/labview-api-ref/page/vi-lib/express/express-execution-control/e... . You can also measure elapsed time by using the Get Date Time VI and subtracting it from an initial sime as shown below:

 

 Elapsed Time.png

 

-Zach

Message 2 of 3
(5,872 Views)
Solution
Accepted by topic author Rahul P

Hi iZACHdx,

 

This is what I was looking to do exactly! Thank you for the simple example.

 

Thanks,

Rahul Patel

0 Kudos
Message 3 of 3
(5,841 Views)