Main Content

sldvharnessopts

Default options for sldvmakeharness

Description

example

harnessopts = sldvharnessopts generates the default configuration for running sldvmakeharness.

Examples

collapse all

Create a test harness for the sldvdemo_cruise_control model by using the default options.

Open the sldvdemo_cruise_control example model.

open_system('sldvdemo_cruise_control');

Using the default options, create a test harness for the sldvdemo_cruise_control model.

harnessOpts = sldvharnessopts;
[harnessfile] = sldvmakeharness('sldvdemo_cruise_control',...
      '', harnessOpts);

Output Arguments

collapse all

A structure whose fields specify the default options for sldvmakeharness when creating a Simulink® Design Verifier™ harness model.

The harnessopts structure can have these fields. If you do not specify values, the configuration uses default values.

FieldDescription
harnessFilePath

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

Default: ''

modelRefHarness

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

Default: true

usedSignalsOnly

When true, the Signal Builder block in the harness model has signals only for input signals in the model. Model must be compatible with the Simulink Design Verifier software to detect those input signals.

When the harnessSource parameter is set to Signal Editor, the Signal Editor block in the harness model consists of unused bus signals in addition to the input signals in the model.

Default: false

harnessSource

When set to Signal Builder, Simulink Design Verifier generates a harness model with the Signal Builder block as the Inputs block.

When set to Signal Editor, Simulink Design Verifier generates a harness model with the Signal Editor block as the Inputs block.

Default: Signal Builder

Introduced in R2010b