LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

what is the seconds of first call to Timer()

Solved!
Go to solution
in help document of Timer() : "Returns the number of seconds elapsed since the first call to Timer, Delay, or SyncWait, or the first operation on a timer control. The value is never reset to zero except when you restart the program. " in my code,after restart the program,sometimes the first call to Timer(),return 0 second; and sometimes,return above 0 seconds,such as 40 seconds. why?
0 Kudos
Message 1 of 3
(2,391 Views)
Solution
Accepted by topic author winter1970

It depends on when it hits the breakpoint.

If it hits immediately, then you should around 0.

Thanks.
CVI 2010
LabVIEW 2011 SP1
Vision Builder AI 2011 SP1
0 Kudos
Message 2 of 3
(2,354 Views)
thank you. what's the meaning of the breakpoint you said ? in my code ,i have not set any breakpoint.
0 Kudos
Message 3 of 3
(2,321 Views)