View Single Post
  #2   Spotlight this post!  
Unread 01-02-2010, 19:45
ASTDan ASTDan is offline
Registered User
no team
 
Join Date: Dec 2009
Location: Lansing MI
Posts: 6
ASTDan is an unknown quantity at this point
Re: LV Mastery Question ... Main Shifter and Command Global

Storing data in shift registers is always more preferable than a global variable. Whenever you call a global you are making a copy of your data.. Also with global variables because you have copies you can get into race conditions. Here is an article on NI's website regarding global variables.

A more elegant way to pass data around your program is a functional global variable.
Reply With Quote