Export Parameters

In Add Parameter and Link Parameter we created a new formal parameter and afterwards we linked the actual parameter of a model instance to it. Instead of this we can do it in only one step by using the export mechanism.

We want to link parameter ScaleFactor of model instance MyAdderModule#1 to a newly created system parameter with the same name. Proceed as follows:

  1. Click once on the model instance MyAdderModule#1 to activate the Instance Properties tab in the Property Editor window.
  2. Activate the context menu in the ScaleFactor field and choose Export.

The next step is to export parameter Increment of model instance SawGen#1 as system parameter with a different name:

  1. Click once on the model instance SawGen#1 to activate the Instance Properties tab in the Property Editor window.
  2. Activate the context menu in the Increment field and choose Export as...
  3. Change the value of the field to SawIncrement and click the OK button.

Last we want to link parameter Increment of model instance SawGen#2 to the newly created system parameter SawIncrement:

  1. Click once on the model instance SawGen#2 to activate the Instance Properties tab in the Property Editor window.
  2. Activate the context menu in the Increment field and choose Link to.. context menu item to open a list of all parameters labeled with a P icon, global parameters labeled with a G icon, and target parameters labeled with a T icon in the system.
  3. Choose SawIncrement from this list.

Now, you can run the simulation. Click on the Simulate button in the toolbar. You can use the default run settings seen in the Simulation Properties window (bottom left), or change the RunLength entry to increase or decrease the run time. Press the Go button to run the simulation.