Table of Contents |
---|
...
Background Color | ||
---|---|---|
| ||
Note: For expressions to work, first click Analyze to build the network topology. |
Define a Parameter as an Expression
To designate a parameter as an expression, access the parameter form of the component. You will encounter eligible parameters displayed as text fields. To invoke the Expression Editor, simply enter '=' within the parameter value field.
...
The Cancel button simply closes the window. While editing the expression, you can use ESCAPE as a shortcut for the Cancel button.
Attribute name for a parameter
To discover the attribute name associated with a value, hover your mouse pointer over the parameter's name for a few seconds. The attribute name will then be revealed enclosed within square brackets, as illustrated in this example where the attribute name is 'ConnexPrim'.
...
Expressions currently cannot use most 3-phase parameters. One expects the following syntax Ld1.R[2], but it is not implemented. However, it is possible to define each phase of an attribute with an expression.
If Comp1.Attr1 = Comp2.A and the component is moved to a subcircuit, then analyzing the expression won't work because the path to the parameter has changed and is not updated automatically.
It is not recommended to cross-reference expressions, e.g. Comp1.Attr1 = Comp2.A, and then do Comp2.A = Comp1.Attr1.
If the referenced component name is changed, the expression is not updated.
The application can crash in extreme cases, e.g. take 4 constants:
Master
Slave1 = Slave2
Slave2 = Slave3
Slave3 = Slave1 + Master
Changing twice the value of master will result in a fatal error of Java. Then it is not possible to open parameter forms anymore.
It is not possible to assign the value of a matrix or vector entry.
In the Python API, setComponentParameter can be used to set an expression. However, the since the "," symbol is used to split phase or array elements, using an expression with "," does not work. For example, see this python sample :
...