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

FXY1Y2_XFrom macro 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.


 

[FXY1Y2_XFrom(state,index)]

JR   Viewer

This command controls how X values are generated using the AddCurves, Compare, DivideCurves, FunctionOfXY1Y2, Lump, MultiplyCurves, and SubtractCurves commands.

If state is non-zero, then X values for the output curve will be taken from the curve with the 1-based index (the i'th generated point will have an X value equal to the X value for the i'th point in curve index).

If state=0, then index is ignored. For FunctionOfXY1Y2 the specified start, stop, and interval values are used. For all other commands, the starting X value is set to the maximum starting X value for both curves referenced in the command; the ending X value is set to the minimum ending X value for those same curves. In all cases, the interval is set such that the number of points in the output curve will be the maximum of the number of points in all relevant curves, or the current maximum number of points if no curves are present in the case of FunctionOfXY1Y2.

____________________________

See also

Y=f(X,Y1,Y2,...) menu command

 


Page url: https://www.dplot.com/help/index.htm?fxy1y2_xfrom_command.htm