class="resources" Formula - LabVIEW 7.1 Help - Support - National Instruments
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

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. Example

Dialog Box Options
Block Diagram Inputs
Block Diagram Outputs

Dialog Box Options

ParameterDescription
StringDisplays 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.
ErrorsIndicates if the formula is valid.
X1Enters 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).
eEnters the value of e into the formula.
PiEnters the value of Pi into the formula.
**Enters ** into the formula. This operator computes the value of x raised to the y power.
modEnters mod( into the formula. This operator computes the remainder of x/y, when the quotient is rounded toward –Infinity.
remEnters rem( into the formula. This operator computes the remainder of x/y, when the quotient is rounded to the nearest integer
More FunctionsContains more advanced functions, such as acos, expm1, floor, gamma, and sinc, that you can use in the Formula Express VI.

Block Diagram Inputs

ParameterDescription
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.

Block Diagram Outputs

ParameterDescription
ResultReturns the resulting data based on the configuration of the Express VI.
error outContains 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

Example

Refer to the Calculation on Dynamic Data VI in the labview\examples\express directory for an example of using the Formula VI.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit