View Single Post
  #2   Spotlight this post!  
Unread 29-01-2011, 19:57
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
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
Reply With Quote