class="resources"
Uses a calculator interface to create mathematical formulas. You can use this Express VI to perform most math functions that a basic scientific calculator can compute. Example
| Dialog Box Options |
| Block Diagram Inputs |
| Block Diagram Outputs |
| Parameter | Description |
|---|---|
| String | Displays the formula as you enter it. You can enter variables and operations into this text box by using the Input buttons or by directly entering a formula. |
| Errors | Indicates if the formula is valid. |
| X1 | Enters a variable into the formula. Enter a new variable name in the Label text box associated with the variable to rename the variable. |
| X1 (STR) | Displays the name of the variable. Enter a new variable name in this text box to rename the default variable (X1-X8). |
| e | Enters the value of e into the formula. |
| Pi | Enters the value of Pi into the formula. |
| ** | Enters ** into the formula. This operator computes the value of x raised to the y power. |
| mod | Enters mod( into the formula. This operator computes the remainder of x/y, when the quotient is rounded toward Infinity. |
| rem | Enters rem( into the formula. This operator computes the remainder of x/y, when the quotient is rounded to the nearest integer |
| More Functions | Contains more advanced functions, such as acos, expm1, floor, gamma, and sinc, that you can use in the Formula Express VI. |
| Parameter | Description |
|---|---|
| X1 | (X1-X8) are the input values for the formula you specified in the configuration dialog box. |
| error in (no error) | Describes error conditions that occur before this VI or function runs. |
| Parameter | Description |
|---|---|
| Result | Returns the resulting data based on the configuration of the Express VI. |
| error out | Contains error information. If error in indicates that an error occurred before this VI or function ran, error out contains the same error information. Otherwise, it describes the error status that this VI or function produces. |
This Express VI uses the functionality of the following VIs and functions:
Expression Node
Formula Node
Eval Formula Node
Eval Formula String
Eval Multi-Variable Array
Refer to the Calculation on Dynamic Data VI in the labview\examples\express directory for an example of using the Formula VI.