Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

global (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

global a

global a b ... c

Description

Generates global variables or defines existing variables as global. If a variable does not exist, LabVIEW generates an empty matrix for that global. Use the global function to access and pass data between the LabVIEW MathScript Window and a MathScript Node or between two MathScript Nodes. The global function generates global variables in a separate context than the global variables in LabVIEW. For example, if you use the global function to generate the global variable a in MathScript, you also can create a different global variable a in LabVIEW.

Details

Details

If you call this function from a MathScript Node, LabVIEW operates with slower run-time performance for the MathScript Node. To optimize the performance of the MathScript Node, remove this function from scripts.

Changes that you make to global variables with this function apply to all MathScript Nodes in the same application instance as the LabVIEW MathScript Window.

Related Topics

clear
is_global
persistent
who


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit