View Single Post
  #8   Spotlight this post!  
Unread 01-03-2012, 15:22
Omar's Avatar
Omar Omar is offline
Registered User
no team
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2008
Location: Huntsville, AL
Posts: 122
Omar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of lightOmar is a glorious beacon of light
Re: Please Help Compiled info Teleop Periodic Task need verification

Just want all to know that you still have to be alert with Globals variables just the same with Locals variables. You do not get a free pass with Globals.

Globals variables are not preferred method in ANY programming language. In school, I had a C prof that would ding us for using globals variables in our C code.

The preferred method in LabVIEW is what you are already using all through out your robot LabVIEW code now!

What we call LV2-Global, Functional Global, Action Engine, etc. Example of these are all the RefNum Registry Set and RefNum Registry Get that are used for all your devices that you are using on your robot.

You SET the RefNum in your Begin.VI and then GET the RefNum where ever you need them.

That is the preferred method.
But if used wisely, Globals have their place.
__________________
Omar
Reply With Quote