LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tick count

Solved!
Go to solution

What is the problem?

 

Here I attached the image. Try similar

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 11 of 17
(861 Views)

it is still not turning on after 15 seconds. And please can you explain how did you calculate the elapsed time.

0 Kudos
Message 12 of 17
(856 Views)

They are not good examples.  It relies on the difference in time stamps to be exactly a multiple of 15,000 milliseconds apart.  (time/15,000 has remainder=0)  There is no guarantee that will happen.

 

You should just use the elapsed time Express VI.

0 Kudos
Message 13 of 17
(850 Views)

But please explain to me why did we use a for loop and why did we substract the two counter values?

0 Kudos
Message 14 of 17
(848 Views)

@Majd.n96 wrote:

But please explain to me why did we use a for loop and why did we substract the two counter values?


Because you wanted something to happen after a specified time interval. You can't have an interval without an initial and final/current measurement.

To see if TimeB is 15 seconds after TimeA, the difference between TimeA and TimeB needs to be calculated.

0 Kudos
Message 15 of 17
(838 Views)

That's not For loop, That's while loop. ( use it to run continiuosly unless you stop )

Timer value difference means the time you started something and what is the current time so you are measursing the time elapsed.

I would recommened basic courses of LabVIEW for you.  

0 Kudos
Message 16 of 17
(836 Views)

@Majd.n96 wrote:

But please explain to me why did we use a for loop and why did we substract the two counter values?


Becasue The base reference time (millisecond zero) is undefined. Hence when VI starts then we are taking one ms value and later we subtract the value from first timer. Hence subtracted reference value will be time from VI runs 

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 17 of 17
(836 Views)