10-09-2014 10:42 AM
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
10-09-2014 01:34 PM
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
10-09-2014 01:47 PM
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.
10-09-2014 01:48 PM
Maybe closer to what you want, if nothing else, it's a start.
/Y
10-09-2014 02:40 PM
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord