Substitutes a formula string by given rules. The rules have a parameter name - parameter content structure.


icon

Inputs/Outputs

  • cstr.png original formula

    original formula is a string representing the formula where parameter names stand for formulas.

  • c1dcclst.png Substitution Rules

    Substitution Rules is an array of clusters describing the substitution rules.

  • cstr.png parameter name

    parameter name can have any length.

    A parameter name that begins with a capital letter E can produce unpredictable errors, if parts of the original string represent numbers like 1E–2. Avoid terms beginning with E in such cases.

  • cstr.png parameter content

    parameter content must have a one-to-one relation with parameter name.

  • cerrcodeclst.png error in (no error)

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

  • istr.png formula after substitution

    formula after substitution is the final formula after all substitution rules are performed.

  • ierrcodeclst.png error out

    error out contains error information. This output provides standard error out functionality.

  • For example, the inputs have the following values:

    • original formula: ALPHA*cos(t) + beta
    • Substitution Rules:

      ALPHAsin(t)

      beta2 * t * exp(t)

    The resulting formula after substitution is (sin(t))*cos(t) + (2*t*exp(t)).

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Scripts and Formulas\Street Illumination Problem.vi