04-08-2013 04:12 PM
Hi,
The attached VI keeps tract of elapsed time and I am having a problem with the format in the seconds section. It gives me 3 digits and does not count the seconds correctly.
I would like to have only 2 digits for the seconds and count correctly as 01, 02 .. 09, 10, 11, . . . 59 (seconds section).
Could someone suggest a change to attached VI?
Thanks,
frn
Solved! Go to Solution.
04-08-2013 04:28 PM
The reason you are not seeing the right number is that the value you get out of the last Quotient & Remainder Function is NOT the seconds, but MILIseconds.
Add one more Quotient & Remainder with a 1000 as y. Then take the floor(x/y) as your seconds.
04-08-2013 04:48 PM
If you do not need a string output, consider subtracting timestamps and formatting the numeric display of the difference as Relative Time.
Lynn
04-08-2013 06:36 PM
04-08-2013 06:37 PM
Thanks Lynn for your input, but I need string as an output.
frn