Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

slvnvharnessopts

Generate default options for slvnvmakeharness

Syntax

harnessopts = slvnvharnessopts

Description

harnessopts = slvnvharnessopts generates the default configuration for running slvnvmakeharness.

Output Arguments

collapse all

The harnessopts structure can have the following fields. If you do not specify any values, default values are used.

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 you do not specify this option, 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 in the model. You must have the Simulink® Design Verifier™ software and model must be compatible with that software to detect the input signals.

Default: false

Examples

Create a Test Harness with Default Options

% 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);

Introduced in R2010b

Was this topic helpful?