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

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

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Member of the commands class.

Syntax

clear

clear all

clear global

clear global a b ... c

clear a b ... c

Description

Removes variables from memory in the LabVIEW MathScript Window or the MathScript Node in which you call this function. clear and clear all remove all variables from memory. clear global removes all global variables from memory. clear global a b ... c removes the global variables a, b, ... , and c from memory. clear a b ... c removes the variables a, b, ... , and c from memory. If a, b, ... , and c are global variables, clear a b ... c removes the variables from the current scope only.

Details

Examples

Details

If you call this function from a MathScript Node or a user-defined function, a warning glyph appears on the MathScript Node frame. The warning glyph indicates that LabVIEW operates with reduced error checking and slower run-time performance for the MathScript Node. To improve the error checking and optimize the performance of the MathScript Node, remove this function from scripts and user-defined functions. Also, do not change the MathScript search path list at run time. Instead, use the MathScript: Search Paths Options page to configure the default search path list.

This function is not supported in the LabVIEW Run-Time Engine. Do not use this function in a stand-alone application or shared library.

Examples

A = 12*23+4i
B = 4
clear A
A+B

Related Topics

who
whos


Resources


 

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