Calculates exactly one function value of a given 1D function y = f(x), where f is the function specified by the user formula.


icon

Inputs/Outputs

  • cstr.png formula

    formula is a string representing the function under investigation. Only one variable can be integrated in this formula.

  • cdbl.png x value

    x value is the 1D point, x, at which the value of the function, given by the formula, has to be calculated.

  • cerrcodeclst.png error in (no error)

    error in describes error conditions that occur before this node runs. This input provides standard error in functionality.

  • idbl.png y value

    y value is the value of formula(x value).

  • ierrcodeclst.png error out

    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:

    • formula: x*sin(x)
    • x value: 2.56

    The resulting y value is 1.41.