Parameter LimitationsThere are some limitations when you are working with parameters in the Calculator component. Parameter names that contain only letters and numbers (and do not start with a number) can be typed in directly. Other parameter names must be surrounded by single quotation marks. If the parameter name contains a single-quote character, add another quotation mark (e.g., 'Don''t'). Elements of multi-dimensional arrays can be referenced as array[i][j] or as array[i, j]. Members of aggregate parameters can be referenced using dot notation: agg.member. Aggregates and arrays can be combined: agg.arr[i, j]. When referencing a member of an aggregate where the aggregate parameter name or the member name contains punctuation, you can put single quotation marks around the entire name (e.g., 'agg with space.mem with space') or separately around each portion (e.g., 'agg with space'.'mem with space'). Note: Parameters and functions can have the same name because function names are followed by an open parentheses, and parameter names are not. Undeclared ParametersThe Calculator component supports undeclared parameters. Any parameter name used in the calculation is created as a parameter when you click Calculate, Apply, or OK. Isight attempts to determine the correct mode (input, output, in/out, or local) of the parameter, data type (real, integer, or string), and structure (scalar, array, or aggregate) based on how the parameter is used. If there is insufficient information to determine the data type and structure, Isight creates a real scalar parameter. When you click OK to close the Calculator Component Editor, each parameter’s mode is updated to reflect how the parameter is used in the calculation as follows:
Isight follows these rules to ensure that existing parameter mappings are not broken. Parameters are created as arrays when:
If explicit subscripts are used, the size of the array is set to the largest subscript specified (plus one) or to the size of the existing array. If the array size cannot be determined, the Calculator Component Editor prompts for the array size.
|