SimulinkPlatform
Description
The SimulinkPlatform object represents the platform of a
behavior asset defined in MATLAB® or Simulink®. The SimulinkPlatform object enables you to specify a
MATLAB- or Simulink-authored file, such as a .m or .slx file,
to associate to a BehaviorAsset in your
RoadRunner scenario. For information on creating behaviors for RoadRunner Scenario using MATLAB and Simulink, see Overview of Simulating RoadRunner Scenarios with MATLAB and Simulink.
Creation
To create a SimulinkPlatform object, use the setPlatform function and
specify the platformType argument as "SimulinkPlatform".
For example, given the BehaviorAsset object,
simBehavior, specifying simPlatform =
setPlatform(simBehavior,"SimulinkPlatform"); creates a
SimulinkPlatform object, simPlatform, and assigns it
to the Platform property of simBehavior.
To associate the SimulinkPlatform object with a behavior file, set the
FileName property. The specified behavior file must originate from
MATLAB and Simulink.
Properties
Version History
Introduced in R2025b