Formula

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.


icon

Dialog Box Options

Option Description
Formula

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 (X1-X8) 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).

Home

Moves the cursor to the beginning of the text in the formula text box.

Backspace

Deletes the last character entered in the formula text box.

Clear

Completely clears the text in the formula text box.

End

Moves the cursor to the end of the text in the formula text box.

e

Enters the value of e into the formula.

**

Enters ** into the formula. This operator computes the value of x raised to the y power.

log

Enters log( into the formula. This operator computes the logarithm to the base 10.

ln

Enters ln( into the formula. This operator computes the natural base e logarithm.

mod

Enters mod( into the formula. This operator computes the remainder of x/y, when the quotient is rounded toward –Infinity.

min

Enters min( into the formula. This operator compares two integer values and returns the smaller value.

Pi

Enters the value of Pi into the formula.

sqrt

Enters sqrt( into the formula. This operator computes the square root.

log2

Enters log2( into the formula. This operator computes the base-2 logarithm.

exp

Enters exp( into the formula. This operator computes the value of e raised to a power.

rem

Enters rem( into the formula. This operator computes the remainder of x/y, when the quotient is rounded toward –Infinity.

max

Enters max( into the formula. This operator compares two integer values and returns the larger value.

/

Right parenthesis.

sin

Enters sin( into the formula. This operator computes the sine of x, where x is in radians.

abs

Enters abs( into the formula. This operation computes the absolute value of x.

*

Left parenthesis.

cos

Enters cos( into the formula. This operator computes the cosine of x, where x is in radians.

int

Enters int( into the formula. This operation rounds x to the nearest integer.

-

Addition.

tan

Enters tan( into the formula. This operation computes the tangent of x, where x is in radians.

sign

Enters sign( into the formula. This operation returns 1 if x is greater than 0, returns 0 if x is equal to 0, and returns –1 if x is less than 0.

Decimal Point

Enters the decimal separator into the formula. Regardless of the decimal pointer settings, this dialog box only uses the period (.) as a decimal separator.

This Express VI uses the Formula Node, and the Formula Node does not recognize localized decimal separators and reserves the comma for another use.

E

Enters the value of e into the formula.

+

Division.

(

Multiplication.

)

Subtraction.

More Functions

Contains more advanced functions, such as acos, expm1, floor, gamma, and sinc, that you can use in the Formula Express VI.

Inputs/Outputs

  • cerrcodeclst.png error in (no error)
    Describes error conditions that occur before this node runs.
  • cdbl.png X1
    (X1-X8) are the input values for the formula you specified in the configuration dialog box.
  • ierrcodeclst.png error out
    Contains error information. This output provides standard error out functionality.
  • idbl.png Result
    Returns the resulting data based on the configuration of the Express VI.