slvnvharnessopts

Generate default options for slvnvmakeharness

Syntax

harnessopts = slvnvharnessopts

Description

harnessopts = slvnvharnessopts generates the default configuration for running slvnvmakeharness.

Output Arguments

harnessopts

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.

FieldDescription
harnessFilePath

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: ''

modelRefHarness

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

usedSignalsOnly

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

systemTestHarness

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

Default: false

Examples

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

open_system('sldemo_mdlref_house');
harnessOpts = slvnvharnessopts;
[harnessfile] = slvnvmakeharness('sldemo_mdlref_house',...
      '', harnessOpts);
Was this topic helpful?