To generate a simulation file, right-click the Block corresponding the system being simulated (see the image below). The shortcut menu displays the menu item Tools that contains Export to Modelica and Export to Simulink.

To export to Modelica and Simulink


  1. Depending on the selected option (either Export to Modelica or Export to Simulink), do one of the following:
    • Set the desired file name and file location (see the first image below). 
    • Select options such as format, output directory, S-Function or Simscape, and Simscape port libraries (see the second image below).
  2. Click Save/OK.