Migration Workflow

This migration workflow helps you migrate legacy SimEvents® models to R2016a or later. In this workflow, you create a new SimEvents model to replace your legacy SimEvents model. This is an iterative workflow that requires you to repeat some steps.

  1. Before you start, copy your legacy model to a backup folder. Run the old model and collect the results using the Simulation Data Inspector (Inspect Simulation Data (Simulink)).

    Note

    Pre-R2016a SimEvents blocks cannot coexist in a model with post-R2016a SimEvents blocks.

  2. Identify and redefine entity types (Identify and Redefine Entity Types)

  3. When possible, replace old blocks with new blocks (Replace Old Blocks) and reconfigure the new blocks.

  4. Write event actions for these instances:

    1. Replace Set Attribute blocks with event actions in other blocks (Replace Set Attribute Blocks with Event Actions)

    2. Replace Get Attribute blocks with event actions in other blocks (Connect Signal Ports)

    3. Replace Attribute Function blocks with event actions in other blocks (Replace Attribute Function Blocks with Event Actions)

    4. Replace random number generators with event actions in other blocks (Replace Random Number Distributions in Event Actions)

  5. Replace reactive ports (see If Connected to Reactive Ports).

  6. Determine a strategy to observe output by replacing Discrete Event Signal to Workspace blocks with To Workspace blocks or logging (Observe Output).

  7. Verify the results by running the simulation and using Simulation Data Inspector to compare these results with those you collect in step 1.

Related Topics