Substitute Variables VI
- Updated2025-03-14
- 2 minute(s) read
Substitutes a formula string by given rules. The rules have a parameter name - parameter content structure.

Inputs/Outputs
![]() original formula is a string representing the formula where parameter names stand for formulas. ![]() Substitution Rules is an array of clusters describing the substitution rules.
![]() error in describes error conditions that occur before this node runs. This input provides standard error in functionality. ![]() formula after substitution is the final formula after all substitution rules are performed. ![]() 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:
ALPHA → sin(t)
beta → 2 * 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