View Single Post
  #12   Spotlight this post!  
Unread 10-10-2008, 07:10
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: Basic Labview Programming Questions

Quote:
Kind of like Round Robin?
Sort of. LabVIEW does do scheduling using round robin, but nothing is inherently rescheduled, that is what loops are for. It is also possible for a flat diagram, no loop, to execute things once and they don't go again.

Quote:
So, if I ...
I think you have the idea, but not the terminology. The VI is the whole loop and everything. The blue box is a loop, a special sort of loop that is capable of all sorts of timing stuff. The down arrow and up arrow are called a shift register. It is a feedback mechanism so that one iteration of a loop can give data to the next iteration. But yes, branching the wire on the left gives the original data, on the right, after the +1 gives the new data.

To relate the original issue to C, If you put a printf() inside of a loop it executes each time the loop does, displaying i. I you place it after the loop, it executes once, displaying the last i. The terminal of an indicator is sort of like calling printf to display data.

Greg McKaskle
Reply With Quote