Export test harness to Simulink model
exports the harness
harnessName, associated with the model or
harnessOwner, to a new Simulink® model specified by the pair
The model must be saved prior to exporting.
detaches the harness
harnessName from the associated model or
harnessOwner, and exports the harness to a standalone
Simulink model with a default name.
Export a Harness to a New Model
Export the harness
which is associated with the
f14 model. The new model name is
openExample('f14'); sltest.harness.create('f14/Controller','Name','controller_harness'); sltest.harness.export('f14/Controller','controller_harness','Name',... 'model_from_harness');
harnessOwner — Model or component
character vector | double
Model or component handle or path, specified as a character vector or double
harnessName — Name of the harness from which to create the model
The name of the harness, specified as a character vector.
modelName — Name of the new model
A valid MATLAB filename for the model generated from the harness, specified as a character vector.
Introduced in R2015a