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

deferdraw (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

Syntax

deferdraw

deferdraw on

deferdraw off

Description

Defers drawing operations or redraws all plot windows. deferdraw on defers all new drawing operations for the plot window. deferdraw off immediately redraws any plot windows with pending drawing operations. deferdraw toggles between the deferdraw on and deferdraw off states.

Details

Examples

Details

If a script calls multiple plots functions, National Instruments recommends that you add deferdraw on to the beginning of the script and deferdraw off to the end of the script in order to limit the amount of times the plot window refreshes.

The following table lists the support characteristics of this function.

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

Examples

X = [0:0.01:1];
Y = X.*X;
deferdraw on
plot(X, Y, 'bo-')
title('title')
text(3, 5, 'text-35')
grid
figure
plot3d(X, Y, Y, 'rx--')
deferdraw off

Related Topics

figure
grid
plot


 

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