Create Mesh Grid (2D) VI

Owning Palette: Interpolation & Extrapolation VIs

Requires: Full Development System

Takes two x domain and y domain arrays and forms X and Y 2D arrays, which are typically used to evaluate and plot functions of two variables. You must manually select the polymorphic instance to use.

Example

Use the pull-down menu to select an instance of this VI.

 Add to the block diagram  Find on the palette

mesh(x,y)

x domain becomes the repeated row data in the output X.
y domain becomes the repeated column data in the output Y.
X is an N x M 2D array formed by creating N identical rows of x domain data, where N is the number of elements in y domain, and M is the number of elements in x domain.
Y is an N x M 2D array formed by creating M identical columns of y domain data, where N is the number of elements in y domain, and M is the number of elements in x domain.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

mesh(x,x)

domain becomes the repeated row data in the output X.
X is an N x N 2D array formed by creating N identical rows of domain data, where N is the number of elements in domain.
Y is an N x N 2D array formed by creating N identical columns of domain data, where N is the number of elements in domain.
error returns any error or warning from the VI. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster.

Example

Refer to the 2D Interpolation VI in the labview\examples\Mathematics\Interpolation directory for an example of using the Create Mesh Grid (2D) VI.

 Open example  Find related examples