Navigation:  Programmer's Reference > Sending data to DPlot from another application >

DeferMinMaxCheck command

Print this Topic Previous pageReturn to chapter overviewNext page

Macro commands may be used either in macros or by sending the commands to DPlot via dynamic data exchange (DDE). Some commands are valid only in macros (noted by Macros Only). Commands sent to DPlot via DDE must be enclosed by square brackets [     ]. Macro commands should not include the brackets.

Command parameters shown in the descriptions below are placeholders for the actual values. Command parameters are either numeric values, equations that evaluate to numbers, or character strings. Character string parameters are always bound by double quotation marks. Equations must be preceded by an equals sign (=).

The pipe symbol (|) in the command syntax indicates that a parameter is optional, and should not be included in your macro unless otherwise noted.

All indices into arrays are 1-based, e.g. Curve1=1 refers to the first curve in a plot.

A 0x prefix for numbers in the descriptions below indicates hexadecimal notation; e.g. 0x0010 = 16.

JR/Viewer indicates that the command is supported by DPlot Jr or DPlot Viewer.
JR/Viewer indicates that the command is NOT supported by DPlot Jr or DPlot Viewer.



JR   Viewer

This command is only useful when calling the DPlot_AddData DPLOTLIB function or when using the XY, XYXY, or XYZ commands from a different program. If state is non-zero, then the minimum values, maximum values, mean, standard deviation and several other parameters are not recalculated after every call to theses functions/commands. Those calculations tend to take a long time (long as in more than a few milliseconds) when a plot contains many thousands of points. This bottleneck could be the difference between success and failure in real-time applications with a short time step (less than 0.1 seconds). This is particularly true when the calling application is written with VB.NET, which for some reason is a bit sluggish with DDE calls. [DeferMinMaxCheck(0)] turns this setting off and immediately causes DPlot to calculate those values and redraw the plot. The downside to using [DeferMinMaxCheck(1)] is that text placeholders will not be updated after every call to DPlot_AddData or when using the XY, XYXY, or XYZ commands.

The extents and other values will be recalculated and a plot be redrawn with DeferMinMaxCheck(0) if that state was previously non-zero.



Page url: