Main Content

RoadRunner Scenario

Define interface for Simulink actor model

Since R2022a

  • RoadRunner Scenario block

Libraries:
Automated Driving Toolbox / RoadRunner Scenario

Description

The RoadRunner Scenario block defines the interface of a Simulink® actor model. The Block Parameters dialog box contains these tabs under which inputs are grouped together.

  • Actions

  • Events

The RoadRunner Scenario block must be present at the root level of the model, otherwise model compilation results in an error.

Parameters

expand all

Name of user-defined action to map to a bus object.

To add an action name, click the Add button below the User-defined actions input table and double-click on a cell in the Action name column to type a new table entry.

Dependencies

To use this parameter, select the Actions tab.

Name of user-defined event to map to a bus object.

To add an event name, click the Add button below the User-defined events input table and double-click on a cell in the Event name column to type a new table entry.

Dependencies

To use this parameter, select the Events tab.

Name of bus object that corresponds to a user-defined action or event.

To add a bus object name corresponding to a user-defined action or event, double-click on a cell in the Bus object name column at the same level of the user-defined action or event, and type a new table entry.

All added bus object names must have a corresponding bus object. Bus objects represent a user-defined action or event. You must define a bus object in MATLAB® in such a way that it contains the same parameter names, data types and values as the user-defined action or event that it represents in RoadRunner Scenario. The RoadRunner Scenario Reader and RoadRunner Scenario Writer blocks rely on a bus object loaded to the MATLAB workspace to recognize the structure of incoming user-defined actions and events.

For more information about creating a bus object for a user-defined action or event, see Author RoadRunner Actor Behavior Using User-Defined Actions or Events in Simulink.

Dependencies

To use this parameter, select the Actions or Events tab.

Version History

Introduced in R2022a