LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

delay

hi!!

using the tick count i want to calculate delay time (second) between two lines in my "table out" but the result is not what i wanted! 

                 _  _

example:| 1 | 0 |  after 6 seconds we change 1 to  2 

               | 2 |6 |    after 7 seconds we change 2 to 3 

               | 3| 7 |   etc...

 

this is my attached vi, 

i grateful for your help 

0 Kudos
Message 1 of 5
(3,100 Views)

I dont understand what you want to do, but if you run it in highlight mode you can see how it's (not) working. Why are you e.g. looking at the 4th column? Why do you need 2D arrays at all?

As for calculating it, extract 1 column, subtract index X from X+1.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(3,077 Views)

First of all, use an event structure to check for the table value changing.  Use the same event structure to watch for the stop button's value change.

 

So since you want a time difference, you need to store the previous time.  Use a feedback node and subtract.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,069 Views)

Maybe closer to what you want, if nothing else, it's a start.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 5
(3,068 Views)
0 Kudos
Message 5 of 5
(3,055 Views)