<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5 plus MathML//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_mathml.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" xmlns:m="http://www.w3.org/1998/Math/MathML" id="new">
  <name>Global Variables in LabVIEW</name>
  <metadata>
  <md:version>1.2</md:version>
  <md:created>2006/07/30 12:52:42 GMT-5</md:created>
  <md:revised>2006/08/03 02:58:38.340 GMT-5</md:revised>
  <md:authorlist>
      <md:author id="felannan">
      <md:firstname>Felix</md:firstname>
      
      <md:surname>Annan</md:surname>
      <md:email>webmaster@fafiles.com</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="felannan">
      <md:firstname>Felix</md:firstname>
      
      <md:surname>Annan</md:surname>
      <md:email>webmaster@fafiles.com</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>Communication</md:keyword>
    <md:keyword>data transfer</md:keyword>
    <md:keyword>Global</md:keyword>
    <md:keyword>labview</md:keyword>
    <md:keyword>Variable</md:keyword>
  </md:keywordlist>

  <md:abstract>This module discusses the Global Variable component as an instrument for data transfer between virtual instruments within a LabVIEW application</md:abstract>
</metadata>
  <content>
    <para id="delete_me"><!-- Insert module text here -->
    Global Variables as their name suggests are variables that can be observed from any VI within the shared memory space of an application. All global variables can be grouped unto a single front panel which then serves as a global variable holder. By placing controls and indicators on it the programmer is basically placing variables in memory that can be referred to in each VI in the application in order to transfer data. Global variables, like all variables in LabVIEW must be set to either be read from or written to in order to be used. They are the closest in description to that found in most procedural/event programming models with forms and their variables</para><para id="element-435">The Advantage:</para><list id="element-628" type="enumerated"><item>They are easy to set up</item>
	</list><para id="element-272">The Disadvantage:</para><list id="element-884" type="enumerated"><item>Since they store only one value at a time they are best used for non continuous data for which the loss of some values is not a threat to the successful run of the whole program.</item>
	<item>The user will have to set up loops that will keep checking the value of the global variable in order to determine if and when its value changes.</item></list><para id="element-672">The global variables are best used for simple information that generally does not change too often.</para><para id="element-575">Implementation:</para><para id="element-925">The global variable component is available from the structures sub-section of the programming functions. Once placed on the block diagram, double clicking on the component allows one to access the global variable holder(front panel).</para>   
  </content>
  
</document>
