You can use these Device Variables (

) in the equations of the same device model or any device model that inherits from it. Right-click a
Device Model or
Device Model Feature node and choose
Device Variables from the
Devices submenu.
Fill in the table columns and rows with the variables needed. Enter a Name and specify an
Expression for a variable. This directly defines an equation for the variable. This is equivalent to defining an equation with the right-hand side set to the variable name and the expression as the left-hand side.
In the Elimination weight column, specify an integer weight for the variable. The weight is used during the variable elimination process, which removes redundant state variables from the equation system. Variables with negative weights are never eliminated, while variables with higher weights are eliminated before the ones with lower weights. Typically, variables being reinitialized in events should have negative weights. In most cases, however, leaving the default value of zero for all variables (meaning that no variables are preferred) is an adequate choice.