Creating a Variable by Editing the Component Parameter Properties

Create a variable in Modelica by editing the value in a component's parameters Properties dialog box.

Note:

You can also use this method to select multiple components that have common properties and create a variable to change values in all selected instances.

  1. Select a Modelica object and drag it into the Diagram Editor.
  2. Enter a variable name in the Value field in this format: =<[VariableName]>, as in the following example.

  3. Press Enter. The Add Variable dialog box opens.

  4. Edit the options as needed.
  5. Click OK.