LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timing an entire program in labVIEW

I am doing a project with different sensors I need to be able to time how long the program is running from power on to off. Has anyone any suggestions as to how to do this.

0 Kudos
Message 1 of 3
(2,186 Views)

Hi Lainey,

 

time measurement usually goes like this: take timestamps and subtract them!

 

I guess this applies here too…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(2,181 Views)

As soon as the program starts, get the timestamp using Get Date/Time In Seconds.  Store that value somewhere (like in a shift register).  You can then get the current time with the same fuction and subtract the timestamp value from the program start.  You now know how long the program has been running.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 3
(2,165 Views)