Owning Palette: 1D & 2D Evaluation VIs
Requires: Full Development System
Calculates exactly one function value of a given 1D function y = f(x), where f is the function specified by the user formula.
Add to the block diagram | Find on the palette |
formula is a string representing the function under investigation. Only one variable can be integrated in this formula. | |
x value is the 1D point, x, at which the value of the function, given by the formula, has to be calculated. | |
error in describes error conditions that occur before this node runs. This input provides standard error in functionality. | |
y value is the value of formula(x value). | |
error out contains error information. This output provides standard error out functionality. |
Refer to the Eval Single-Variable Array VI for an example that applies to the Eval Single-Variable Scalar VI, except that x value and y value are scalars for the Eval Single-Variable Scalar VI.
The Eval Single-Variable Scalar VI calculates only one value of a given 1D function. It is difficult to analyze the formula in the background. Therefore, if you want to calculate a collection of Eval Single-Variable Scalar VIs, use the Eval Single-Variable Array, Parse Formula String, and Eval Parsed Formula String VIs.
For an example of using the Eval Single-Variable Scalar VI, enter the following values on the front panel:
The resulting y value is 1.41.