Main Content

Simulink.SubsystemReference.removeSignatures

Remove previously generated unit test signatures of subsystem file

Since R2023a

Description

example

Simulink.SubsystemReference.removeSignatures(SSRefName) removes all of the previously generated unit test signatures from the subsystem file SSRefName.

example

Simulink.SubsystemReference.removeSignatures(SSRefName,{testHarness1,...,testHarnessN}) removes the signatures of one or more unit tests testHarness1,...,testHarnessN from the subsystem file SSRefName.

Examples

collapse all

Remove the signatures of all the unit tests from the subsystem file slexReusableSS.

ssfile = "slexReusableSS";
open_system(ssfile);

Set the test harnesses ssref1_double and ssref1_int32 as unit tests of the subsystem file.

set_param(ssfile,"UnitTestNames",{'ssref1_double','ssref1_int32'});

Generate signatures of all the unit tests of the subsystem file.

Simulink.SubsystemReference.generateSignatures(ssfile);
save_system(ssfile);

Remove all unit test signatures.

Simulink.SubsystemReference.removeSignatures(ssfile);

Remove the signatures of specific unit tests from the subsystem file slexReusableSS.

ssfile = "slexReusableSS";
open_system(ssfile);

Set the test harnesses ssref1_double and ssref1_int32 as unit tests of the subsystem file.

set_param(ssfile,"UnitTestNames",{'ssref1_double','ssref1_int32'});

Generate signatures of all the unit tests of the subsystem file.

Simulink.SubsystemReference.generateSignatures(ssfile);
save_system(ssfile);

Remove signatures of unit test ssref1_double.

Simulink.SubsystemReference.removeSignatures(ssfile,{'ssref1_double'});

Input Arguments

collapse all

Name of the subsystem file, specified as a string scalar or character vector. You can also specify the handle of the subsystem file.

Example: "slexReusableSS"

Data Types: string | char

Names of the unit tests, specified as a cell array.

Example: {'ssref1_double'}

Example: {'ssref1_double','ssref1_int32'}

Data Types: cell

Version History

Introduced in R2023a