From the Calculator Component Editor, begin entering
your calculation in the Expression text box by
typing directly or by using any of the following methods:
-
To insert a declared parameter, double-click the parameter
name from the Declared Parameters
list. You can also select the parameter and click Add
(beneath the Declared Parameters
list).
You can sort the parameters in the list by component. Right-click in
the list, and select Group Parameters. The setting
is saved as a preference for this component. You can use the Preference
option to set the initial default for this option for all applicable
component editors. You can also choose to not group parameters for the
selected component. For more information about these Preference
options, see Setting Parameter Preferences in the Isight User’s Guide.
-
To insert numbers or operators into your expression, click the Calculator
buttons. You can also use the numeric keyboard.
For more information about operators, see About Calculator Operators.
-
To insert a function into an expression, double-click the function in
the Available Functions
list. You can also select the function and click Add (below
the Available Functions
list).
Note:
All trigonometric functions (e.g., sin, cos, tan, sec,
csc, cot) use radians in their argument. All arc trigonometric functions
(e.g., acos, asin, atan, acsc, asec, acot) return radian values.
For a list of all available functions, see Calculator Functions.
If you are entering multiple expressions, enter each expression on a
separate line in the Expression text box or separate
the expressions by a semicolon.
A single expression can be spread over multiple lines. You can insert
a new line anywhere after the = sign except inside a
parameter name, string constant, or function name. The expression ends
at a semicolon or at the end of the line before a new expression starts.
If desired, click Allow exceptional values (NaN, Infinity).
By default, the Calculator component stops and displays an error if
any function or operator returns a real result with an exceptional value.
The exceptional values are Inf, -Inf, or NaN. If you click Allow
exceptional values (NaN, Infinity), the Calculator component
proceeds and returns the exceptional value. Exceptional values can be
stored as real parameters and will appear on the Runtime Gateway
Parameters and History
tabs.
When the expression is complete, click Calculate to
execute the calculation and to display the result in the Status bar.
To view a more detailed result, click the button next to the Status bar
to open the Calculation Messages dialog box.
If the expression contains errors, Isight
displays a message and highlights the symbol closest to the error in
pink.
Click OK to save your expression and to close
the Calculator Component Editor.
|