Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

get (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: plots

Requires: MathScript RT Module



get(obj, name)

get(0, default)

a = get(obj)

b = get(obj, name)

b = get(0, default)


Returns the attribute value of a plot object. Plot objects include line, plot area, plot window, and text objects. get(obj) returns the current values of all attributes of the plot object referenced by obj. get(obj, name) returns the current value of the attribute specified by name. get(0, default) returns the default value of the attribute specified by default.



Name Description
obj Specifies the reference to the plot object.
name Specifies the name of the attribute. name is a string.
default Specifies the name of the attribute for which you want LabVIEW to return the default value. default is a string and must be the concatenation of 'Default', object type, and attribute name, such as 'DefaultPlotWindowResize'. Valid objects types are Line, PlotArea, PlotWindow, and Text.


Name Description
a Returns the names and current values of all attributes of the plot object referenced by obj. a is a string.
b Returns the value of the specified attribute.


The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine No (returns error or is ignored)
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized


t = 0:0.1:2*pi;
obj1 = subplot(211);
plot(t, sin(t));
set(obj1, 'Color', rand(3, 1));
obj2 = subplot(212);
plot(t, cos(t));
c = get(obj1, 'Color');
set(obj2, 'Color', 1 - c);

b = get(0, 'DefaultLineVisible')

Related Topics



 Was this document helpful?  submit
  Helpful Not Helpful