1.

What Is The Difference Between Local Variable And Global Variable In Labview?

Answer»

Local Variables: The Local Variable item is located on the Structures palette on the Block Diagram(BD).

When you place a Local variable in BD PANEL, it will look LIKE a question mark symbol. After this just right click on the local variable & choose 'Select Item' & select which Indicator/Control you would like to connect it to. The other way to create the local variable is to right-click on a Indicator/Control either in Front Panel or in BD and select 'Create Local Variable'.

Global Variables: Use global variables to access and PASS data among several VIs. When you place a global variable on the Block Diagram, it looks like a question mark with globe symbol.

Once you create global variable in any labview VI, labview engine automatically creates 'global variable vi' in the following DIRECTORY. Pls. NOTE that only front panel of the global variable exists.

Local Variables: The Local Variable item is located on the Structures palette on the Block Diagram(BD).

When you place a Local variable in BD panel, it will look like a question mark symbol. After this just right click on the local variable & choose 'Select Item' & select which Indicator/Control you would like to connect it to. The other way to create the local variable is to right-click on a Indicator/Control either in Front Panel or in BD and select 'Create Local Variable'.

Global Variables: Use global variables to access and pass data among several VIs. When you place a global variable on the Block Diagram, it looks like a question mark with globe symbol.

Once you create global variable in any labview VI, labview engine automatically creates 'global variable vi' in the following directory. Pls. note that only front panel of the global variable exists.



Discussion

No Comment Found