mdlrefdemos.mdl Open this Model

Model Reference Demonstrations

Introduction

Model Reference is a new Simulink/Real-Time Workshop feature that allows a user to create models that contain other models (referenced models). Unlike subsystems, the referenced models can be used multiple times in multiple models. As a result, Simulink models can be built from reusable modular components.

Demo Requirements

In these demos, code generation for standalone applications requires Real-Time Workshop. During these demonstrations, Simulink and Real-Time Workshop generate code in Simulink project directories created in the the current working directory. If you do not want to (or if you cannot) generate files in this directory, you should change your working directory.

Demonstrations

The following demonstrations show different aspects of this new feature.


Introduces the basic concepts and usage of Model Reference.
Basic

Shows how to pass different parameter values for multiple instances of a referenced model.
Parameter Arguments

Demonstrates how to use buses with referenced models.
Bus Signals

Demonstrates how to convert existing models to using model reference.
Converting Existing Models

Demonstrates how to find all referenced models and display model reference dependency graph.
Finding and Viewing Referenced Models