10-28-2013 11:21 PM
What is the problem?
Here I attached the image. Try similar
10-28-2013 11:24 PM
it is still not turning on after 15 seconds. And please can you explain how did you calculate the elapsed time.
10-28-2013 11:37 PM
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.
10-28-2013 11:39 PM
But please explain to me why did we use a for loop and why did we substract the two counter values?
10-28-2013 11:46 PM
@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.
10-28-2013 11:47 PM
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.
10-28-2013 11:47 PM
@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