Showing results for 
Search instead for 
Did you mean: 

Time measuring in the program

Hi everyone, 

I am making a measurment program for the battery. 
I would like to have an option inside that is going to measure the time of every cycle.
For example: When i choose to discharge a battery, it takes a value what I set in the Time (or Voltage, or Current) column and discharge a battery for so long time (if i get 1 into the box, it means 1 hour of discharging). I need a help with a time measurement. How can I make that a program counts the time in the whole state machine, or even better how to make that a program start counting when some process is started?
Vi in attachments. 
thanks in advance

0 Kudos
Message 1 of 2

Hi vlado,


in your start state you could store the current timestamp in a shift register.

In other states you could also read the current timestamp and calc the difference to the start timestamp…

Best regards,

using LV2020 on Win8.1+cRIO
0 Kudos
Message 2 of 2