Documentation Center

  • Trials
  • Product Updates


Generate default options for slvnvmakeharness


harnessopts = slvnvharnessopts


harnessopts = slvnvharnessopts generates the default configuration for running slvnvmakeharness.

Output Arguments


A structure whose fields specify the default configuration for slvnvmakeharness. The harnessopts structure can have the following fields. Default values are used if not specified.


Specifies the file path for creating the harness model. If an invalid path is specified, slvnvmakeharness does not save the harness model, but it creates and opens the harness model. If this option is not specified, slvnvmakeharness generates a new harness model and saves it in the MATLAB® current folder.

Default: ''


Generates the test harness model that includes model in a Model block. When false, the test harness model includes a copy of model.

Default: true


When true, the Signal Builder block in the harness model has signals only for input signals used in the model. The Simulink® Design Verifier™ software must be available, and model must be compatible with the Simulink Design Verifier software to detect the used input signals.

Default: false


When true, generates a SystemTest™ harness. This option requires dataFile path in addition to model.

Default: false


Create a test harness for the sldemo_mdlref_house model using the default options:

harnessOpts = slvnvharnessopts;
[harnessfile] = slvnvmakeharness('sldemo_mdlref_house',...
      '', harnessOpts);

See Also

Was this topic helpful?