View Single Post
  #2   Spotlight this post!  
Unread 18-02-2012, 08:24
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,753
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: How many flat sequences in periodic Tasks.vi

There isn't much difference, but they aren't identical either. Let me describe, and you select the one most appropriate.

Two loops are not necessarily synchronized. One could start and finish before the other even begins, and due to drift or jitter, after a larger amount of time, two loops running at the same rate could even have run different numbers of times.

A single loop synchronizes to its contents. It will not start again until everything inside of it has run once -- switch structures don't have to run all cases, but they have to run one. This means that the contents are guaranteed to be run the same number of times. If one is slow, they are both slowed, etc.

Sequence structures do nothing but guarantee execution order when there is no data passing from between the nodes. They aren't really needed that often, but generally don't do any harm unless you force the code to go in the wrong order. They are most useful for introducing delays between commands.

Greg McKaskle

Last edited by Greg McKaskle : 18-02-2012 at 08:25. Reason: Finish my thought.