Adding an SML Model

Follow this procedure to add an SML model to a project using Twin Builder‘s SML Model Editor:

  1. Select Tools > Edit Libraries > Models. The Edit Libraries dialog box appears.
  1. Click Add Model to open the Add Model dialog box.
  2. Select the SML radio button.
  3. Type the new SML model name in the Name field.

    The SML Model Editor opens, displaying new SML model entity declarations in a tab bearing the model name you chose above.

  4. Edit the SML model source code as needed.
  5. Optionally, you can check syntax.
  6. When finished editing, select SML Model Editor > Compile & Update Project to add the model to the project. See Importing and Updating Twin Builder Models and Components for additional details.

You can use Export ModelName Text As to open a dialog box to save and export the code present in the editor.

Related Topics 

Importing Simulation Models