|
Re: Playing with LabVIEW
To have it update with each loop iteration, move that code inside the loop.
More generally, when a LV wire crosses a diagram boundary, the outside wire will not be updated until the inner diagram and structure complete. For the loop, this means that the array that leaves the loop is not updated until the loop finishes.
For the Boolean state changes, there are probably many ways to do this. I think my approach would be to compare each new value to the previous using a shift register or feedback node. When they are not the same, store the time or loop iteration of the transition. To see how long since the last change, compute using the current info and the value at the transition.
Greg McKaskle
|