About the Calculator Adapter

You use the Calculator adapter to define computations directly in the simulation process. It can be used to solve mathematical expressions, and it supports all major mathematical operators.

See Also
Entering and Evaluating Expressions
Calculator Functions
Parameter Usage Within the Calculator
About Calculator Operators

The Calculator Editor is divided into sections as follows:

  • You use the Expression text box to enter and to evaluate your mathematical expressions. The expression can be as long as necessary. The text of the expressions is color-coded to simplify reading:

    Red

    Numbers and string constants.

    Blue

    Parameter names.

    Purple

    Undefined parameter names that are defined when you click Calculate or Ok.

    Green

    Comments.

  • The All Parameters list shows all the available parameters. You can select parameters from this area to use in your expressions. Click the arrow to determine which parameters are displayed in the list. By default, all parameters are displayed.

  • The Calculator buttons allow you to use the editor similar to the way you use a standard calculator.
  • The All Functions list shows all available functions that may be helpful in defining your expressions. Click the arrow to determine which functions are displayed in the list. By default, all functions are displayed.

  • The Status bar displays messages associated with using the Calculator adapter

The Calculator adapter can be used in a collapsed or expanded mode. All the lists and buttons are displayed in the expanded view. In collapsed mode the parameters are accessible through a menu.