Adding Models

You can add additional models to a C-Model project to create a multiple-model DLL. Follow this procedure to add an additional model:

  1. Click C-Model Editor > Add Model. The Edit Model dialog box appears with Model selected in the tree view.

  2. Click Add to add a new entry to the list in the Model field.
  3. Enter a name for the new model in the Name field.
  4. Select the Model Type you are adding.
  5. Select the model Simulator Type.
  6. If you want to add more models, repeat Steps 1 through 4 for each model.
  7. Click OK to add the models.

Click OK, and the C-Model Wizard generates the AddNode_State function call for the internal state in the Prepare_ function of the appropriate model.