Owning Palette: 1D & 2D Evaluation VIs
Requires: Full Development System
Calculates a 2D array of function values defined on a grid.
Add to the block diagram | Find on the palette |
number of points describes the number of grid points for both variables. The default is 25. | |||||
Start specifies the start points of both variables, that is, an array of length 2. The default values are (0, 0). | |||||
End specifies the end points of both variables, that is, an array of length 2. The default values are (1, 1). | |||||
Parameters is an array of clusters describing the parameters.
| |||||
formula is a string describing a function, where both variables and parameters can be used. The formula can contain any number of valid variables. | |||||
Variables is an array of two strings representing the two variables with respect to the naming conventions of the Formula Parsing VIs. The default variables are (x1, x2). | |||||
X1 Values is a 1D array of the used x1 arguments. | |||||
X2 Values is a 1D array of the used x2 arguments. | |||||
Y Values is the resulting 2D array of the function values. | |||||
ticks is the time effort for the whole calculation of the function values in milliseconds. | |||||
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. |
Use this VI to integrate an arbitrary set of parameters where any parameter gets its value with the help of an element of an array of parameter clusters on the front panel.
The function
f(a, b, x1, x2) = a*sinc(gamma(x1 + x2)) – b*sin(x1)*cos(x2)
with a = 1 and b = 2 is a common function in x1 and x2. The variables a and b stand for Parameters. Only the right hand side of this equation needs to be entered on the Formula control. Thus enter the following values on the front panel: