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

deferdraw (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

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.

This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

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