3D Surface (Windows, Not in Base Package)

Plots a simple surface from z matrix. The surface is modified by the x and y vectors that cause the surface to shift in relation to the x and y planes. It accepts one 2D array and the two optional 1D arrays. Details

3D graph accepts the reference to the 3D control.
x vector is a 1D array that describes the surface from z matrix in relation to the x plane.
y vector is a 1D array that describes the surface from the z matrix in relation to the y plane.
error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. This VI or function runs normally only if no error occurs before this VI or function runs. If an error occurs while this VI or function runs, it runs normally and sets its own error status in error out. Use the Simple Error Handler or General Error Handler VIs to display the description of the error code. Use error in and error out to check errors and to specify execution order by wiring error out from one node to error in of the next node.
status is TRUE (X) if an error occurred before this VI or function ran or FALSE (checkmark) to indicate a warning or that no error occurred before this VI or function ran. The default is FALSE.
code is the error or warning code. The default is 0. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning. The default is an empty string.
z matrix is a 2D array of data that describes the surface. The x and y vectors shift or skew the set of data in the z matrix.
plot number is the index into the list of plots from the properties of the 3D control. Add new plots by right-clicking the control and adjusting the properties. The default is the first plot from the list.
3D graph out passes the reference to the 3D control out so that it can be used by other VIs.
error out contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. Right-click the error out indicator on the front panel and select Explain Error from the shortcut menu for more information about the error.
status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred.
code is the error or warning code. If status is TRUE, code is a non-zero error code. If status is FALSE, code is 0 or a warning code.
source describes the origin of the error or warning and is, in most cases, the name of the VI or function that produced the error or warning.

3D Surface Details

x vector and y vector correspond to the two indices for the z matrix 2D array. If the number of elements in x vector does not match the width of z matrix in the first dimension and the number of elements in y vector does not match the width of z matrix in the second dimension, both x vector and y vector are ignored.

The values of x vector and y vector specify where the corresponding point in the z matrix should be located. The default values for x vector and y vector are 0, 1, 2, 3, and so on. The first point in z matrix (index 0,0) is located at (x vector[0], y vector[0]), or (0,0). If you change x vector to -1, 1, 2, 3, and so on, the first point in z matrix moves to (-1,0).

Refer to examples\general\graphs\3dgraph.llb\Fluctuating Sine Wave.vi for an example of a 3D surface graph.