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

global (MathScript Function) (Windows, Not in Base Package)

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the support class.

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
isglobal
persistent
who


Resources


 

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